Skip to content

Commit

Permalink
typing for _perform_action
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Dec 16, 2024
1 parent 6fe2773 commit 5f8e4f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/aiida/engine/processes/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import collections
import concurrent
import concurrent.futures
import functools
import typing as t

Expand Down Expand Up @@ -207,7 +207,7 @@ def kill_processes(

def _perform_actions(
processes: list[ProcessNode],
action: t.Callable,
action: t.Callable[[int | None], kiwipy.Future],
infinitive: str,
present: str,
timeout: t.Optional[float] = None,
Expand All @@ -234,7 +234,7 @@ def _perform_actions(
continue

try:
future = action(process.pk, **kwargs)
future = action(process.pk)
except communications.UnroutableError:
LOGGER.error(f'Process<{process.pk}> is unreachable.')
else:
Expand All @@ -244,7 +244,7 @@ def _perform_actions(


def _resolve_futures(
futures: dict[concurrent.futures.Future, ProcessNode],
futures: dict[kiwipy.Future, ProcessNode],
infinitive: str,
present: str,
wait: bool = False,
Expand Down

0 comments on commit 5f8e4f1

Please sign in to comment.