Use direct types over indirect types
This commit is contained in:
parent
ff5eaf2429
commit
d50e1b6872
|
@ -12,7 +12,7 @@ from libp2p.peer.peerstore import PeerStore
|
|||
from libp2p.peer.peerstore_interface import IPeerStore
|
||||
from libp2p.routing.interfaces import IPeerRouting
|
||||
from libp2p.routing.kademlia.kademlia_peer_router import KadmeliaPeerRouter
|
||||
from libp2p.security.insecure_security import InsecureTransport
|
||||
from libp2p.security.insecure.transport import InsecureTransport
|
||||
from libp2p.security.secure_transport_interface import ISecureTransport
|
||||
from libp2p.transport.tcp.tcp import TCP
|
||||
from libp2p.transport.upgrader import TransportUpgrader
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
from libp2p.network.connection.raw_connection_interface import IRawConnection
|
||||
|
||||
from .typing import TSecurityDetails
|
||||
from libp2p.security.typing import TSecurityDetails
|
||||
|
||||
|
||||
"""
|
||||
|
|
|
@ -2,8 +2,7 @@ from abc import ABC, abstractmethod
|
|||
|
||||
from libp2p.network.connection.raw_connection_interface import IRawConnection
|
||||
from libp2p.peer.id import ID
|
||||
|
||||
from .secure_conn_interface import ISecureConn
|
||||
from libp2p.security.secure_conn_interface import ISecureConn
|
||||
|
||||
|
||||
"""
|
||||
|
|
|
@ -5,11 +5,10 @@ from libp2p.network.connection.raw_connection_interface import IRawConnection
|
|||
from libp2p.peer.id import ID
|
||||
from libp2p.protocol_muxer.multiselect import Multiselect
|
||||
from libp2p.protocol_muxer.multiselect_client import MultiselectClient
|
||||
from libp2p.security.secure_conn_interface import ISecureConn
|
||||
from libp2p.security.secure_transport_interface import ISecureTransport
|
||||
from libp2p.typing import TProtocol
|
||||
|
||||
from .secure_conn_interface import ISecureConn
|
||||
from .secure_transport_interface import ISecureTransport
|
||||
|
||||
|
||||
"""
|
||||
Represents a secured connection object, which includes a connection and details about the security
|
||||
|
|
Loading…
Reference in New Issue
Block a user