diff --git a/src/java/io/__init__.py b/src/java/io/__init__.py index cf39bb5..7849e03 100644 --- a/src/java/io/__init__.py +++ b/src/java/io/__init__.py @@ -42,6 +42,7 @@ Readable, Throwable, ) +from java.nio import CharBuffer from java.nio.channels import FileChannel from java.nio.charset import Charset, CharsetDecoder @@ -334,8 +335,8 @@ def nullReader(): # type: () -> Reader pass - def read(self, *args): - # type: (*Any) -> int + def read(self, cb): + # type: (CharBuffer) -> int pass def ready(self): diff --git a/stubs/stubs/java/io/__init__.pyi b/stubs/stubs/java/io/__init__.pyi index 1879334..d7aec62 100644 --- a/stubs/stubs/java/io/__init__.pyi +++ b/stubs/stubs/java/io/__init__.pyi @@ -9,6 +9,7 @@ from java.lang import ( Readable, Throwable, ) +from java.nio import CharBuffer from java.nio.channels import FileChannel from java.nio.charset import Charset, CharsetDecoder @@ -112,7 +113,7 @@ class Reader(Object, Readable, Closeable): def markSupported(self) -> bool: ... @staticmethod def nullReader() -> Reader: ... - def read(self, *args: Any) -> int: ... + def read(self, cb: CharBuffer) -> int: ... def ready(self) -> bool: ... def reset(self) -> None: ... def skip(self, n: long) -> long: ...