mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 14:40:53 +00:00
turn mypy checks back on, fix some errors
This commit is contained in:
@ -8,6 +8,9 @@ NOTE: currently missing the capability to indicate lengths by "varint" method.
|
||||
from abc import (
|
||||
abstractmethod,
|
||||
)
|
||||
from typing import (
|
||||
Literal,
|
||||
)
|
||||
|
||||
from libp2p.io.abc import (
|
||||
MsgReadWriteCloser,
|
||||
@ -26,7 +29,7 @@ from .exceptions import (
|
||||
MessageTooLarge,
|
||||
)
|
||||
|
||||
BYTE_ORDER = "big"
|
||||
BYTE_ORDER: Literal["big", "little"] = "big"
|
||||
|
||||
|
||||
async def read_length(reader: Reader, size_len_bytes: int) -> int:
|
||||
|
||||
Reference in New Issue
Block a user