rename typing.py to custom_types.py for clarity

This commit is contained in:
pacrob
2025-02-02 07:04:36 -07:00
committed by Paul Robinson
parent d0234bb183
commit e7a9ee78a8
35 changed files with 95 additions and 94 deletions

View File

@ -13,6 +13,9 @@ from multiaddr import (
Multiaddr,
)
from libp2p.custom_types import (
StreamHandlerFn,
)
from libp2p.network.connection.net_connection_interface import (
INetConn,
)
@ -28,9 +31,6 @@ from libp2p.tools.async_service import (
from libp2p.transport.listener_interface import (
IListener,
)
from libp2p.typing import (
StreamHandlerFn,
)
from .stream.net_stream_interface import (
INetStream,

View File

@ -2,6 +2,9 @@ from typing import (
Optional,
)
from libp2p.custom_types import (
TProtocol,
)
from libp2p.stream_muxer.abc import (
IMuxedStream,
)
@ -10,9 +13,6 @@ from libp2p.stream_muxer.exceptions import (
MuxedStreamEOF,
MuxedStreamReset,
)
from libp2p.typing import (
TProtocol,
)
from .exceptions import (
StreamClosed,

View File

@ -2,15 +2,15 @@ from abc import (
abstractmethod,
)
from libp2p.custom_types import (
TProtocol,
)
from libp2p.io.abc import (
ReadWriteCloser,
)
from libp2p.stream_muxer.abc import (
IMuxedConn,
)
from libp2p.typing import (
TProtocol,
)
class INetStream(ReadWriteCloser):

View File

@ -8,6 +8,9 @@ from multiaddr import (
)
import trio
from libp2p.custom_types import (
StreamHandlerFn,
)
from libp2p.io.abc import (
ReadWriteCloser,
)
@ -43,9 +46,6 @@ from libp2p.transport.transport_interface import (
from libp2p.transport.upgrader import (
TransportUpgrader,
)
from libp2p.typing import (
StreamHandlerFn,
)
from ..exceptions import (
MultiError,