Skip to content

Commit

Permalink
Add type hints to ports_allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed May 2, 2024
1 parent 6791264 commit 471ed0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skale/schain_config/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@


from skale.skale_manager import SkaleManager
from skale.types.schain import SchainName


def get_nodes_for_schain(skale: SkaleManager, name: str) -> list[int]:
def get_nodes_for_schain(skale: SkaleManager, name: SchainName) -> list[int]:
nodes = []
ids = skale.schains_internal.get_node_ids_for_schain(name)
for id_ in ids:
Expand Down

0 comments on commit 471ed0f

Please sign in to comment.