Skip to content

Commit 520c853

Browse files
authored
Merge pull request #33 from opentensor/bug/fix/python3.9-support
python 3.9 support
2 parents 356fc00 + 5e9e6c4 commit 520c853

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

async_substrate_interface/utils/decoding.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Union
2+
13
from bt_decode import AxonInfo, PrometheusInfo
24

35

@@ -29,7 +31,7 @@ def _determine_if_old_runtime_call(runtime_call_def, metadata_v15_value) -> bool
2931
return False
3032

3133

32-
def _bt_decode_to_dict_or_list(obj) -> dict | list[dict]:
34+
def _bt_decode_to_dict_or_list(obj) -> Union[dict, list[dict]]:
3335
if isinstance(obj, list):
3436
return [_bt_decode_to_dict_or_list(item) for item in obj]
3537

0 commit comments

Comments
 (0)