Skip to content

Commit 830e5f2

Browse files
committed
Updates type
1 parent 9d92215 commit 830e5f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bittensor/core/chain_data/delegate_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dataclasses import dataclass
2-
from typing import Optional, Union
2+
from typing import Optional
33

44
from bittensor.core.chain_data.info_base import InfoBase
55
from bittensor.core.chain_data.utils import decode_account_id
@@ -48,7 +48,7 @@ class DelegateInfo(DelegateInfoBase):
4848
] # Mapping of nominator addresses to their stakes per subnet
4949

5050
@classmethod
51-
def _from_dict(cls, decoded: Union[dict, tuple]) -> Optional["DelegateInfo"]:
51+
def _from_dict(cls, decoded: dict) -> Optional["DelegateInfo"]:
5252
hotkey = decode_account_id(decoded.get("delegate_ss58"))
5353
owner = decode_account_id(decoded.get("owner_ss58"))
5454

0 commit comments

Comments
 (0)