Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modern_di_celery/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> T: # noqa: ANN401
return func(**bound.arguments, **resolved)

# NOT functools.wraps — keep Celery's arg-binding reading the visible signature.
wrapper.__name__ = func.__name__ # ty: ignore[unresolved-attribute]
wrapper.__qualname__ = func.__qualname__ # ty: ignore[unresolved-attribute]
wrapper.__name__ = func.__name__ # ty: ignore[missing-attribute]
wrapper.__qualname__ = func.__qualname__ # ty: ignore[missing-attribute]
wrapper.__doc__ = func.__doc__
wrapper.__module__ = func.__module__
wrapper.__signature__ = visible_signature # ty: ignore[unresolved-attribute]
wrapper.__signature__ = visible_signature # ty: ignore[missing-attribute]
integrations.mark_injected(wrapper)
return wrapper

Expand Down
Loading