turn mypy checks back on, fix some errors

This commit is contained in:
pacrob
2024-04-27 09:41:56 -06:00
committed by Paul Robinson
parent f0fbd2d8c8
commit 8dda7b933e
11 changed files with 39 additions and 33 deletions

View File

@ -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: