Skip to content

Commit b4e6630

Browse files
committed
Fix typing
1 parent 3dd3238 commit b4e6630

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2628,7 +2628,7 @@ async def get_constant(
26282628
constant_name: str,
26292629
block_hash: Optional[str] = None,
26302630
reuse_block_hash: bool = False,
2631-
) -> Optional["ScaleType"]:
2631+
) -> Optional[ScaleObj]:
26322632
"""
26332633
Returns the decoded `ScaleType` object of the constant for given module name, call function name and block_hash
26342634
(or chaintip if block_hash is omitted)

async_substrate_interface/sync_substrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def decode_scale(
598598
type_string: str,
599599
scale_bytes: bytes,
600600
return_scale_obj=False,
601-
) -> Any:
601+
) -> Union[ScaleObj, Any]:
602602
"""
603603
Helper function to decode arbitrary SCALE-bytes (e.g. 0x02000000) according to given RUST type_string
604604
(e.g. BlockNumber). The relevant versioning information of the type (if defined) will be applied if block_hash
@@ -2334,7 +2334,7 @@ def get_constant(
23342334
constant_name: str,
23352335
block_hash: Optional[str] = None,
23362336
reuse_block_hash: bool = False,
2337-
) -> Optional["ScaleType"]:
2337+
) -> Optional[ScaleObj]:
23382338
"""
23392339
Returns the decoded `ScaleType` object of the constant for given module name, call function name and block_hash
23402340
(or chaintip if block_hash is omitted)

0 commit comments

Comments
 (0)