Skip to content

Commit

Permalink
Add arbitrary named arguments to @receiver decorator (#2342)
Browse files Browse the repository at this point in the history
@receiver accepts arbitrary keyword arguments - per [the docs](https://docs.djangoproject.com/en/5.1/topics/signals/#django.dispatch.receiver)

This comes in handy for some third party apps
  • Loading branch information
craigds authored Aug 18, 2024
1 parent c587619 commit 8b222a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django-stubs/dispatch/dispatcher.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ def receiver(
sender: object | None = ...,
weak: bool = ...,
dispatch_uid: Hashable | None = ...,
**named: Any,
) -> Callable[[_F], _F]: ...

0 comments on commit 8b222a6

Please sign in to comment.