Skip to content

Commit

Permalink
Fix Signal._live_receivers typing
Browse files Browse the repository at this point in the history
`_live_receivers` returns a tuple of two lists of callables since [support for async](django/django@e83a885#diff-65f7ef82645dcdb6a7898f2126781336c222437f65d3666c9d65b89edf725a6bR456) has been added.
  • Loading branch information
mdalp authored Jan 9, 2025
1 parent 977408a commit 7d0c275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/dispatch/dispatcher.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Signal:
async def asend(self, sender: Any, **named: Any) -> list[tuple[Callable, str | None]]: ...
def send_robust(self, sender: Any, **named: Any) -> list[tuple[Callable, Exception | Any]]: ...
async def asend_robust(self, sender: Any, **named: Any) -> list[tuple[Callable, Exception | Any]]: ...
def _live_receivers(self, sender: Any) -> list[Callable]: ...
def _live_receivers(self, sender: Any) -> tuple[list[Callable], list[Callable]]: ...

_F = TypeVar("_F", bound=Callable[..., Any])

Expand Down

0 comments on commit 7d0c275

Please sign in to comment.