Fix the error below that was caught during tests on the dev environment.
Make sure the CI will get things like this in the future, by making it run tests for Python 3.8 as well (we had it running only for 3.9, while our runtimes use 3.8.
Traceback (most recent call last):
File "./daemons_runner.py", line 5, in <module>
from daemons.data_collector import DataCollector
File "/code/daemons/data_collector.py", line 8, in <module>
from usecases.collect_nodes_statuses import CollectNodesStatuses
File "/code/usecases/collect_nodes_statuses.py", line 6, in <module>
from gateways.clients.hathor_core_client import HathorCoreAsyncClient
File "/code/gateways/clients/hathor_core_client.py", line 29, in <module>
class HathorCoreAsyncClient:
File "/code/gateways/clients/hathor_core_client.py", line 43, in HathorCoreAsyncClient
) -> dict[Any, Any]:
TypeError: 'type' object is not subscriptable
Security Checklist
[ ] Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.
Acceptance Criteria
Security Checklist