mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-23 08:44:25 +01:00
Apply pylint's linting rules to bfxapi/tests/*.py.
This commit is contained in:
@@ -31,8 +31,7 @@ class BfxWebsocketBucket:
|
||||
|
||||
self.handler = PublicChannelsHandler(event_emitter=self.event_emitter)
|
||||
|
||||
#pylint: disable-next=unused-argument
|
||||
async def connect(self, index):
|
||||
async def connect(self):
|
||||
reconnection = False
|
||||
|
||||
async for websocket in websockets.connect(self.host):
|
||||
|
||||
@@ -75,7 +75,7 @@ class BfxWebsocketClient:
|
||||
for index in range(connections):
|
||||
self.buckets += [BfxWebsocketBucket(self.host, self.event_emitter, self.on_open_events[index])]
|
||||
|
||||
tasks = [ bucket.connect(index) for index, bucket in enumerate(self.buckets) ]
|
||||
tasks = [ bucket.connect() for bucket in self.buckets ]
|
||||
|
||||
tasks.append(self.__connect())
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pylint: disable=invalid-name,redefined-builtin,too-many-arguments
|
||||
#pylint: disable=redefined-builtin,too-many-arguments
|
||||
|
||||
from decimal import Decimal
|
||||
from datetime import datetime
|
||||
|
||||
Reference in New Issue
Block a user