diff --git a/CHANGELOG.md b/CHANGELOG.md index 4797dc4..4901703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 1.0.0rc12 /2025-02-07 +* python 3.9 support by @roman-opentensor in https://github.com/opentensor/async-substrate-interface/pull/33 + ## 1.0.0rc11 /2025-02-06 * Reuses the websocket for sync Substrate by @thewhaleking in https://github.com/opentensor/async-substrate-interface/pull/29 * Feat/metadata v15 cache by @camfairchild in https://github.com/opentensor/async-substrate-interface/pull/30 diff --git a/async_substrate_interface/utils/decoding.py b/async_substrate_interface/utils/decoding.py index 3162fe4..f0ce439 100644 --- a/async_substrate_interface/utils/decoding.py +++ b/async_substrate_interface/utils/decoding.py @@ -1,3 +1,5 @@ +from typing import Union + from bt_decode import AxonInfo, PrometheusInfo @@ -29,7 +31,7 @@ def _determine_if_old_runtime_call(runtime_call_def, metadata_v15_value) -> bool return False -def _bt_decode_to_dict_or_list(obj) -> dict | list[dict]: +def _bt_decode_to_dict_or_list(obj) -> Union[dict, list[dict]]: if isinstance(obj, list): return [_bt_decode_to_dict_or_list(item) for item in obj] diff --git a/pyproject.toml b/pyproject.toml index c6281f3..3cb5275 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "async-substrate-interface" -version = "1.0.0rc11" +version = "1.0.0rc12" description = "Asyncio library for interacting with substrate. Mostly API-compatible with py-substrate-interface" readme = "README.md" license = { file = "LICENSE" }