@@ -5,6 +5,7 @@ from java.lang.reflect import Type
55from java .nio import CharBuffer
66from java .util import Iterator , Spliterator
77from java .util .function import Consumer
8+ from java .util .stream import IntStream , Stream
89
910class Object :
1011 def __init__ (self ) -> None : ...
@@ -30,8 +31,8 @@ class AutoCloseable:
3031
3132class CharSequence :
3233 def charAt (self , index : int ) -> str : ...
33- def chars (self ) -> None : ...
34- def codePoints (self ) -> None : ...
34+ def chars (self ) -> IntStream : ...
35+ def codePoints (self ) -> IntStream : ...
3536 @staticmethod
3637 def compare (cs1 : CharSequence , cs2 : CharSequence ) -> int : ...
3738 def length (self ) -> int : ...
@@ -88,11 +89,11 @@ class String(unicode):
8889 def __new__ (cls , * args : Any ) -> Any : ...
8990 def __init__ (self , * args : Any ) -> None : ...
9091 def charAt (self , index : int ) -> unicode : ...
91- def chars (self ) -> None : ...
92+ def chars (self ) -> IntStream : ...
9293 def codePointAt (self , index : int ) -> int : ...
9394 def codePointBefore (self , index : int ) -> int : ...
9495 def codePointCount (self , beginIndex : int , endIndex : int ) -> int : ...
95- def codePoints (self ) -> None : ...
96+ def codePoints (self ) -> IntStream : ...
9697 @staticmethod
9798 def compare (cs1 : CharSequence , cs2 : CharSequence ) -> int : ...
9899 def compareTo (self , anotherString : String ) -> int : ...
@@ -121,7 +122,7 @@ class String(unicode):
121122 self , arg : Union [int , String ], fromIndex : Optional [int ] = ...
122123 ) -> int : ...
123124 def length (self ) -> int : ...
124- def lines (self ) -> None : ...
125+ def lines (self ) -> Stream : ...
125126 def matches (self , regex : String ) -> bool : ...
126127 def notify (self ) -> None : ...
127128 def notifyAll (self ) -> None : ...
0 commit comments