fix: more python3.7 incompatibilities

This commit is contained in:
Stefan Stammberger 2021-07-18 07:59:19 +02:00
parent 48ee10f532
commit 47d654c9db
No known key found for this signature in database
GPG key ID: 645FA807E935D9D5
2 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,6 @@
import json
from types import coroutine
from typing import Dict, Final
from typing import Dict
import aiohttp
import requests
@ -101,9 +101,9 @@ async def send_sse_message(id: str, json_data: Dict):
class SSE():
SYS_STATUS: Final = "sys_status"
SYS_STATUS = "sys_status"
BTC_NETWORK_STATUS: Final = "btc_network_status"
BTC_MEMPOOL_STATUS: Final = "btc_mempool_status"
BTC_NEW_BLOC: Final = "btc_new_bloc"
BTC_INFO: Final = "btc_info"
BTC_NETWORK_STATUS = "btc_network_status"
BTC_MEMPOOL_STATUS = "btc_mempool_status"
BTC_NEW_BLOC = "btc_new_bloc"
BTC_INFO = "btc_info"

View file

@ -15,3 +15,4 @@ aiohttp==3.7.4
grpcio==1.38.1
grpcio-tools==1.38.1
googleapis-common-protos==1.53.0
protobuf>=3.12.0