From 47d654c9db2f2b82366fbfaffd798adbb18d26a0 Mon Sep 17 00:00:00 2001 From: Stefan Stammberger Date: Sun, 18 Jul 2021 07:59:19 +0200 Subject: [PATCH] fix: more python3.7 incompatibilities --- app/utils.py | 12 ++++++------ requirements.txt | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/utils.py b/app/utils.py index 74bd2ac..d8cc57f 100644 --- a/app/utils.py +++ b/app/utils.py @@ -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" diff --git a/requirements.txt b/requirements.txt index 73425ce..bcfac4c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file