Skip to content

Commit 9d8b9ee

Browse files
author
Andrei Neagu
committed
mypy
1 parent bd0dcfe commit 9d8b9ee

File tree

1 file changed

+2
-3
lines changed
  • packages/service-library/src/servicelib/long_running_tasks

1 file changed

+2
-3
lines changed

packages/service-library/src/servicelib/long_running_tasks/task.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ def register(cls, task: TaskProtocol) -> None:
6868
@classmethod
6969
def register_partial(cls, task: TaskProtocol, **partial_kwargs) -> None:
7070
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
71+
# allows to call via the partial of via the orignal method
72+
partail_task.__name__ = task.__name__ # type: ignore[attr-defined]
7473
cls.REGISTERED_TASKS[task.__name__] = partail_task # type: ignore[assignment]
7574

7675
@classmethod

0 commit comments

Comments
 (0)