Fix all flake8 errors in all python files (+ edit configuration files).

This commit is contained in:
Davide Casale
2024-02-27 17:24:47 +01:00
parent 2344d44aa0
commit 5543b0b1d2
11 changed files with 33 additions and 32 deletions

View File

@@ -15,7 +15,7 @@ _CHECKSUM_FLAG_VALUE = 131_072
def _strip(message: Dict[str, Any], keys: List[str]) -> Dict[str, Any]:
return {key: value for key, value in message.items() if not key in keys}
return {key: value for key, value in message.items() if key not in keys}
class BfxWebSocketBucket(Connection):
@@ -136,7 +136,7 @@ class BfxWebSocketBucket(Connection):
await self.subscribe(**subscription)
@Connection._require_websocket_connection
async def close(self, code: int = 1000, reason: str = str()) -> None:
async def close(self, code: int = 1000, reason: str = "") -> None:
await self._websocket.close(code, reason)
def has(self, sub_id: str) -> bool: