mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Add INetStream to type StreamReader
TODO: Make stream readers implement `Reader`
This commit is contained in:
@ -9,5 +9,4 @@ if TYPE_CHECKING:
|
||||
TProtocol = NewType("TProtocol", str)
|
||||
StreamHandlerFn = Callable[["INetStream"], Awaitable[None]]
|
||||
|
||||
|
||||
StreamReader = Union["IMuxedStream", IRawConnection]
|
||||
StreamReader = Union["IMuxedStream", "INetStream", IRawConnection]
|
||||
|
||||
Reference in New Issue
Block a user