Skip to content

Commit

Permalink
Fix model signals (#138)
Browse files Browse the repository at this point in the history
Hi, this PR fixed type for dispatch_uid
  • Loading branch information
last-partizan authored Oct 6, 2022
1 parent 89e0cdc commit 2db4c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-stubs/db/models/signals.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ...

Expand Down

0 comments on commit 2db4c3c

Please sign in to comment.