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 bd0dcfe commit 9d8b9eeCopy full SHA for 9d8b9ee
packages/service-library/src/servicelib/long_running_tasks/task.py
@@ -68,9 +68,8 @@ def register(cls, task: TaskProtocol) -> None:
68
@classmethod
69
def register_partial(cls, task: TaskProtocol, **partial_kwargs) -> None:
70
partail_task = functools.partial(task, **partial_kwargs)
71
- partail_task.__name__ = (
72
- task.__name__
73
- ) # allows to call via the partial of via the orignal method
+ # allows to call via the partial of via the orignal method
+ partail_task.__name__ = task.__name__ # type: ignore[attr-defined]
74
cls.REGISTERED_TASKS[task.__name__] = partail_task # type: ignore[assignment]
75
76
0 commit comments