Skip to content

Commit ad0cc3d

Browse files
committed
Mypy…
1 parent b30aea0 commit ad0cc3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bittensor/core/subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ def get_timestamp(self, block: Optional[int] = None) -> datetime:
20822082
Returns:
20832083
datetime object for the timestamp of the block
20842084
"""
2085-
unix = self.query_module("Timestamp", "Now", block=block).value
2085+
unix = cast(ScaleObj, self.query_module("Timestamp", "Now", block=block)).value
20862086
return datetime.fromtimestamp(unix / 1000, tz=timezone.utc)
20872087

20882088
# Extrinsics helper ================================================================================================

0 commit comments

Comments
 (0)