Skip to content

Commit 93a6ef7

Browse files
mdalpsobolevn
andauthored
Fix Signal._live_receivers typing (typeddjango#2475)
* 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 <[email protected]>
1 parent 977408a commit 93a6ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/dispatch/dispatcher.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Signal:
2626
async def asend(self, sender: Any, **named: Any) -> list[tuple[Callable, str | None]]: ...
2727
def send_robust(self, sender: Any, **named: Any) -> list[tuple[Callable, Exception | Any]]: ...
2828
async def asend_robust(self, sender: Any, **named: Any) -> list[tuple[Callable, Exception | Any]]: ...
29-
def _live_receivers(self, sender: Any) -> list[Callable]: ...
29+
def _live_receivers(self, sender: Any) -> tuple[list[Callable[..., Any]], list[Callable[..., Any]]]: ...
3030

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

0 commit comments

Comments
 (0)