From 5e9e6c4f1b62a04aeca8c5d8008fb70637428212 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 6 Feb 2025 18:34:05 -0800 Subject: [PATCH 1/2] python 3.9 support --- async_substrate_interface/utils/decoding.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] From 6c0e50fe13c60d571f94adc5909e19f2806f03f2 Mon Sep 17 00:00:00 2001 From: ibraheem-opentensor Date: Thu, 6 Feb 2025 21:47:17 -0800 Subject: [PATCH 2/2] Bumps version and changelog --- CHANGELOG.md | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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/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" }