Skip to content

Commit 1424067

Browse files
committed
Fix return type of asyncio.StreamReader.exception
1 parent a58999c commit 1424067

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stdlib/asyncio/streams.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class StreamWriter:
106106

107107
class StreamReader:
108108
def __init__(self, limit: int = 65536, loop: events.AbstractEventLoop | None = None) -> None: ...
109-
def exception(self) -> Exception: ...
109+
def exception(self) -> Exception | None: ...
110110
def set_exception(self, exc: Exception) -> None: ...
111111
def set_transport(self, transport: transports.BaseTransport) -> None: ...
112112
def feed_eof(self) -> None: ...

0 commit comments

Comments
 (0)