mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix type stubs in streams.pyi (#1252)
This commit is contained in:
committed by
Jelle Zijlstra
parent
70363c27a7
commit
3cfc146223
@@ -95,7 +95,7 @@ class StreamReader:
|
||||
def set_transport(self, transport: transports.BaseTransport) -> None: ...
|
||||
def feed_eof(self) -> None: ...
|
||||
def at_eof(self) -> bool: ...
|
||||
def feed_data(self, data: bytes): ...
|
||||
def feed_data(self, data: bytes) -> None: ...
|
||||
@coroutines.coroutine
|
||||
def readline(self) -> Generator[Any, None, bytes]: ...
|
||||
@coroutines.coroutine
|
||||
@@ -103,4 +103,4 @@ class StreamReader:
|
||||
@coroutines.coroutine
|
||||
def read(self, n: int = ...) -> Generator[Any, None, bytes]: ...
|
||||
@coroutines.coroutine
|
||||
def readexactly(self, n) -> Generator[Any, None, bytes]: ...
|
||||
def readexactly(self, n: int) -> Generator[Any, None, bytes]: ...
|
||||
|
||||
Reference in New Issue
Block a user