We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84b17df commit fb9ff38Copy full SHA for fb9ff38
packages/service-library/src/servicelib/long_running_tasks/task.py
@@ -65,12 +65,10 @@ def register(cls, task: TaskProtocol) -> None:
65
cls.REGISTERED_TASKS[task.__name__] = task
66
67
@classmethod
68
- def register_partial(
69
- cls, task: TaskProtocol, *partial_args, **partial_kwargs
70
- ) -> None:
+ def register_partial(cls, task: TaskProtocol, **partial_kwargs) -> None:
71
cls.REGISTERED_TASKS[task.__name__] = functools.partial(
72
- task, *partial_args, **partial_kwargs
73
- )
+ task, **partial_kwargs
+ ) # type: ignore[assignment]
74
75
76
def unregister(cls, task: TaskProtocol) -> None:
0 commit comments