From 2db4c3c048e7d421c1c1a986f98b0553d123a014 Mon Sep 17 00:00:00 2001 From: Serhii Tereshchenko Date: Thu, 6 Oct 2022 03:47:34 +0300 Subject: [PATCH] Fix model signals (#138) Hi, this PR fixed type for dispatch_uid --- django-stubs/db/models/signals.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django-stubs/db/models/signals.pyi b/django-stubs/db/models/signals.pyi index a54c8056a..c2b491831 100644 --- a/django-stubs/db/models/signals.pyi +++ b/django-stubs/db/models/signals.pyi @@ -12,14 +12,14 @@ class ModelSignal(Signal): receiver: Callable[..., Any], sender: Optional[Union[Type[Model], str]] = ..., weak: bool = ..., - dispatch_uid: None = ..., + dispatch_uid: Optional[str] = ..., apps: Optional[Apps] = ..., ) -> None: ... def disconnect( # type: ignore self, receiver: Callable[..., Any] = ..., sender: Optional[Union[Type[Model], str]] = ..., - dispatch_uid: None = ..., + dispatch_uid: Optional[str] = ..., apps: Optional[Apps] = ..., ) -> Optional[bool]: ...