Skip to content

Commit fc2a7bd

Browse files
committed
Add annotations.
1 parent d64b2cd commit fc2a7bd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

async_substrate_interface/async_substrate.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,9 +1361,9 @@ async def get_metadata_errors(
13611361

13621362
async def get_metadata_error(
13631363
self,
1364-
module_name,
1365-
error_name,
1366-
block_hash=None,
1364+
module_name: str,
1365+
error_name: str,
1366+
block_hash: Optional[str] = None,
13671367
runtime: Optional[Runtime] = None,
13681368
):
13691369
"""
@@ -3096,9 +3096,9 @@ async def get_metadata_constants(self, block_hash=None) -> list[dict]:
30963096

30973097
async def get_metadata_constant(
30983098
self,
3099-
module_name,
3100-
constant_name,
3101-
block_hash=None,
3099+
module_name: str,
3100+
constant_name: str,
3101+
block_hash: Optional[str] = None,
31023102
runtime: Optional[Runtime] = None,
31033103
):
31043104
"""

async_substrate_interface/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,8 @@ def is_valid_ss58_address(self, value: str) -> bool:
645645
def serialize_storage_item(
646646
self,
647647
storage_item: ScaleType,
648-
module,
649-
spec_version_id,
648+
module: str,
649+
spec_version_id: int,
650650
runtime: Optional[Runtime] = None,
651651
) -> dict:
652652
"""

0 commit comments

Comments
 (0)