We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d92215 commit 830e5f2Copy full SHA for 830e5f2
bittensor/core/chain_data/delegate_info.py
@@ -1,5 +1,5 @@
1
from dataclasses import dataclass
2
-from typing import Optional, Union
+from typing import Optional
3
4
from bittensor.core.chain_data.info_base import InfoBase
5
from bittensor.core.chain_data.utils import decode_account_id
@@ -48,7 +48,7 @@ class DelegateInfo(DelegateInfoBase):
48
] # Mapping of nominator addresses to their stakes per subnet
49
50
@classmethod
51
- def _from_dict(cls, decoded: Union[dict, tuple]) -> Optional["DelegateInfo"]:
+ def _from_dict(cls, decoded: dict) -> Optional["DelegateInfo"]:
52
hotkey = decode_account_id(decoded.get("delegate_ss58"))
53
owner = decode_account_id(decoded.get("owner_ss58"))
54
0 commit comments