run lint and fix errors, except mypy

This commit is contained in:
pacrob
2024-02-19 15:56:20 -07:00
parent 42605c0288
commit 94483714a3
171 changed files with 4809 additions and 2290 deletions

View File

@ -1,6 +1,9 @@
import pytest
from libp2p.tools.factories import mplex_conn_pair_factory, mplex_stream_pair_factory
from libp2p.tools.factories import (
mplex_conn_pair_factory,
mplex_stream_pair_factory,
)
@pytest.fixture

View File

@ -1,14 +1,20 @@
import pytest
import trio
from trio.testing import wait_all_tasks_blocked
from trio.testing import (
wait_all_tasks_blocked,
)
from libp2p.stream_muxer.mplex.exceptions import (
MplexStreamClosed,
MplexStreamEOF,
MplexStreamReset,
)
from libp2p.stream_muxer.mplex.mplex import MPLEX_MESSAGE_CHANNEL_SIZE
from libp2p.tools.constants import MAX_READ_LEN
from libp2p.stream_muxer.mplex.mplex import (
MPLEX_MESSAGE_CHANNEL_SIZE,
)
from libp2p.tools.constants import (
MAX_READ_LEN,
)
DATA = b"data_123"