mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-04-06 22:11:26 +00:00
Change async def write
To return `None` instead of `int. `Writer.write` *does* write all data in all use case.
This commit is contained in:
@ -14,7 +14,7 @@ class Reader(ABC):
|
||||
|
||||
class Writer(ABC):
|
||||
@abstractmethod
|
||||
async def write(self, data: bytes) -> int:
|
||||
async def write(self, data: bytes) -> None:
|
||||
...
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user