Skip to content

Commit 11ae860

Browse files
committed
misc: pre-commit
1 parent 00d5be9 commit 11ae860

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

src/plumpy/controller.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def play_process(self, pid: 'PID_TYPE') -> ProcessResult:
5252
...
5353

5454
def play_all(self) -> None:
55-
"""Play all processes that are subscribed to the same coordinator
56-
"""
55+
"""Play all processes that are subscribed to the same coordinator"""
5756

5857
def kill_process(self, pid: 'PID_TYPE', msg_text: str | None = None) -> Any:
5958
"""Kill the process

src/plumpy/coordinator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import annotations
33

4-
from typing import TYPE_CHECKING, Any, Callable, Hashable, Protocol
54
from re import Pattern
5+
from typing import TYPE_CHECKING, Any, Callable, Hashable, Protocol
66

77
if TYPE_CHECKING:
88
ID_TYPE = Hashable
@@ -36,7 +36,11 @@ def unhook_broadcast_receiver(self, identifier: 'ID_TYPE | None') -> None: ...
3636

3737
def unhook_task_receiver(self, identifier: 'ID_TYPE') -> None: ...
3838

39-
def rpc_send(self, recipient_id: Hashable, msg: Any,) -> Any: ...
39+
def rpc_send(
40+
self,
41+
recipient_id: Hashable,
42+
msg: Any,
43+
) -> Any: ...
4044

4145
def broadcast_send(
4246
self,

src/plumpy/message.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import logging
88
from typing import TYPE_CHECKING, Any, Dict, Optional, Sequence, Union, cast
99

10-
from plumpy.coordinator import Coordinator
1110
from plumpy.exceptions import PersistenceError, TaskRejectedError
1211

1312
from . import loaders, persistence

src/plumpy/processes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
cast,
3535
)
3636

37-
import kiwipy
38-
3937
from plumpy.broadcast_filter import BroadcastFilter
4038
from plumpy.coordinator import Coordinator
4139

src/plumpy/rmq/communications.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def converted(communicator: kiwipy.Communicator, *args: Any, **kwargs: Any) -> k
8282
CommT = TypeVar('CommT', bound=kiwipy.Communicator)
8383

8484

85-
def wrap_communicator(communicator: CommT, loop: Optional[asyncio.AbstractEventLoop] = None) -> 'LoopCommunicator[CommT]':
85+
def wrap_communicator(
86+
communicator: CommT, loop: Optional[asyncio.AbstractEventLoop] = None
87+
) -> 'LoopCommunicator[CommT]':
8688
"""
8789
Wrap a communicator such that all callbacks made to any subscribers are scheduled on the
8890
given event loop.

tests/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
"""Utilities for tests"""
3+
from __future__ import annotations
34

45
import asyncio
56
import collections
@@ -105,7 +106,7 @@ def hook_broadcast_receiver(
105106
self._broadcast_receivers[identifier] = receiver
106107
return identifier
107108

108-
def unhook_broadcast_receiver(self, identifier: 'ID_TYPE | None') -> None:
109+
def unhook_broadcast_receiver(self, identifier: 'ID_TYPE | None') -> None:
109110
self._ensure_open()
110111
try:
111112
del self._broadcast_receivers[identifier]

0 commit comments

Comments
 (0)