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

@ -6,6 +6,9 @@ from typing import (
Callable,
)
from libp2p.custom_types import (
TProtocol,
)
from libp2p.io.abc import (
ReadWriteCloser,
)
@ -15,9 +18,6 @@ from libp2p.security.secure_transport_interface import (
from libp2p.stream_muxer.abc import (
IMuxedConn,
)
from libp2p.typing import (
TProtocol,
)
THandler = Callable[[ReadWriteCloser], Awaitable[None]]
TSecurityOptions = Mapping[TProtocol, ISecureTransport]