Fix flake8 for the existing code

This commit is contained in:
mhchia 2019-08-04 00:18:30 +08:00
parent 727342a767
commit 0a5b4a88ca
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A
6 changed files with 2 additions and 9 deletions

View File

@ -1,4 +1,4 @@
from typing import TYPE_CHECKING, Any, Dict, cast
from typing import TYPE_CHECKING, cast
from libp2p.security.secure_conn_interface import ISecureConn
from libp2p.security.secure_transport_interface import ISecureTransport
@ -6,7 +6,6 @@ from libp2p.security.secure_transport_interface import ISecureTransport
if TYPE_CHECKING:
from libp2p.network.connection.raw_connection_interface import IRawConnection
from libp2p.peer.id import ID
from .secure_conn_interface import ISecureConn
from .typing import TSecurityDetails

View File

@ -7,7 +7,6 @@ from libp2p.protocol_muxer.multiselect_client import MultiselectClient
if TYPE_CHECKING:
from libp2p.network.connection.raw_connection_interface import IRawConnection
from libp2p.peer.id import ID
from .typing import TSecurityDetails
from .secure_conn_interface import ISecureConn
from .secure_transport_interface import ISecureTransport

View File

@ -1,3 +1,3 @@
from typing import Any, Dict, NewType, TypeVar
from typing import Dict, NewType
TSecurityDetails = NewType("TSecurityDetails", Dict[str, str])

View File

@ -3,7 +3,6 @@ import asyncio
import multiaddr
from libp2p.network.connection.raw_connection import RawConnection
from libp2p.peer.id import ID
from ..listener_interface import IListener
from ..transport_interface import ITransport

View File

@ -1,9 +1,7 @@
import asyncio
import multiaddr
import pytest
from libp2p import new_node
from libp2p.peer.peerinfo import info_from_p2p_addr
from libp2p.protocol_muxer.multiselect_client import MultiselectClientError
from tests.utils import cleanup, set_up_nodes_by_transport_opt

View File

@ -1,5 +1,3 @@
import functools
import factory
from libp2p import initialize_default_swarm