Remove pylint:disable

This commit is contained in:
mhchia
2019-08-02 23:19:36 +08:00
parent 06a9511ab4
commit 2e94fcf56c
36 changed files with 7 additions and 64 deletions

View File

@ -20,7 +20,6 @@ class RawConnection(IRawConnection):
writer: asyncio.StreamWriter,
initiator: bool,
) -> None:
# pylint: disable=too-many-arguments
self.conn_ip = ip
self.conn_port = port
self.reader = reader

View File

@ -1,6 +1,5 @@
from abc import ABC, abstractmethod
# pylint: disable=too-few-public-methods
class IRawConnection(ABC):

View File

@ -26,7 +26,6 @@ StreamHandlerFn = Callable[[INetStream], Awaitable[None]]
class Swarm(INetwork):
# pylint: disable=too-many-instance-attributes,cell-var-from-loop,too-many-arguments
self_id: ID
peerstore: PeerStore
@ -249,7 +248,6 @@ class Swarm(INetwork):
# TODO: `tear_down`
async def tear_down(self) -> None:
# pylint: disable=line-too-long
# Reference: https://github.com/libp2p/go-libp2p-swarm/blob/8be680aef8dea0a4497283f2f98470c2aeae6b65/swarm.go#L118 # noqa: E501
pass