Skip to content

Commit

Permalink
add type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
pedohorse committed Sep 18, 2024
1 parent 4230a1f commit ca3fe1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lifeblood/scheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ async def add_node(self, node_type: str, node_name: str) -> int:
async def apply_node_settings(self, node_id: int, settings_name: str):
async with self.node_object_by_id_for_writing(node_id) as node_object:
settings = self.__node_data_provider.node_settings(node_object.type_name(), settings_name)
async with self.node_object_by_id_for_writing(node_id) as node:
async with self.node_object_by_id_for_writing(node_id) as node: # type: BaseNode
await asyncio.get_event_loop().run_in_executor(None, node.apply_settings, settings)

async def remove_node(self, node_id: int):
Expand Down

0 comments on commit ca3fe1c

Please sign in to comment.