Use direct types over indirect types

This commit is contained in:
Alex Stokes 2019-08-02 14:49:54 -07:00
parent ff5eaf2429
commit d50e1b6872
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086
4 changed files with 5 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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