Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0: Add Signal.asend and Signal.asend_robust #1965

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -238,10 +238,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