From d979c6c56e89853650850e2b413d6f209fb97498 Mon Sep 17 00:00:00 2001 From: Craig de Stigter Date: Sun, 18 Aug 2024 22:05:28 +1200 Subject: [PATCH] Add arbitrary named arguments to @receiver decorator @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 --- django-stubs/dispatch/dispatcher.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/django-stubs/dispatch/dispatcher.pyi b/django-stubs/dispatch/dispatcher.pyi index 7915285e7..2682d9cb7 100644 --- a/django-stubs/dispatch/dispatcher.pyi +++ b/django-stubs/dispatch/dispatcher.pyi @@ -36,4 +36,5 @@ def receiver( sender: object | None = ..., weak: bool = ..., dispatch_uid: Hashable | None = ..., + **named: Any, ) -> Callable[[_F], _F]: ...