Upgrade to Mypy 1.3.0 (old: 0.991). Fix compatibility problems with Mypy. Add type hints to bfxapi.websocket.handlers.

This commit is contained in:
Davide Casale
2023-05-19 22:13:15 +02:00
parent 57680abd06
commit c8290f144b
7 changed files with 161 additions and 133 deletions

View File

@@ -262,9 +262,9 @@ class RestPublicEndpoints(Middleware):
limit: Optional[int] = None) -> List[PulseMessage]:
messages = []
for subdata in self._get("pulse/hist", params={ "end": end, "limit": limit }):
subdata[18] = subdata[18][0]
message = serializers.PulseMessage.parse(*subdata)
for sub_data in self._get("pulse/hist", params={ "end": end, "limit": limit }):
sub_data[18] = sub_data[18][0]
message = serializers.PulseMessage.parse(*sub_data)
messages.append(message)
return messages