Skip to content

Commit

Permalink
Fix Signal._live_receivers typing (#2475)
Browse files Browse the repository at this point in the history
* Fix Signal._live_receivers typing

`_live_receivers` returns a tuple of two lists of callables since [support for async](django/django@e83a885#diff-65f7ef82645dcdb6a7898f2126781336c222437f65d3666c9d65b89edf725a6bR456) has been added.

* Update django-stubs/dispatch/dispatcher.pyi

---------

Co-authored-by: sobolevn <mail@sobolevn.me>
  • Loading branch information
mdalp and sobolevn authored Jan 9, 2025
1 parent 977408a commit 93a6ef7
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[..., Any]], list[Callable[..., Any]]]: ...

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

Expand Down

0 comments on commit 93a6ef7

Please sign in to comment.