Skip to content

Commit

Permalink
Add Signal.asend and Signal.asend_robust (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
q0w authored Feb 24, 2024
1 parent 2dcf1bf commit 7897a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions django-stubs/dispatch/dispatcher.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class Signal:
) -> bool: ...
def has_listeners(self, sender: Any = ...) -> bool: ...
def send(self, sender: Any, **named: Any) -> list[tuple[Callable, str | None]]: ...
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]: ...

_F = TypeVar("_F", bound=Callable[..., Any])
Expand Down
4 changes: 0 additions & 4 deletions scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ django.db.models.sql.query.Query.build_filtered_relation_q
django.db.models.sql.query.Query.join
django.db.models.sql.query.Query.resolve_lookup_value
django.db.models.sql.query.Query.setup_joins
django.dispatch.Signal.asend
django.dispatch.Signal.asend_robust
django.dispatch.dispatcher.Signal.asend
django.dispatch.dispatcher.Signal.asend_robust
django.forms.BaseForm._html_output
django.forms.BaseModelFormSet.save_existing
django.forms.BoundField.get_context
Expand Down

0 comments on commit 7897a71

Please sign in to comment.