Skip to content

Commit 7897a71

Browse files
authored
Add Signal.asend and Signal.asend_robust (#1965)
1 parent 2dcf1bf commit 7897a71

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

django-stubs/dispatch/dispatcher.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ class Signal:
2323
) -> bool: ...
2424
def has_listeners(self, sender: Any = ...) -> bool: ...
2525
def send(self, sender: Any, **named: Any) -> list[tuple[Callable, str | None]]: ...
26+
async def asend(self, sender: Any, **named: Any) -> list[tuple[Callable, str | None]]: ...
2627
def send_robust(self, sender: Any, **named: Any) -> list[tuple[Callable, Exception | Any]]: ...
28+
async def asend_robust(self, sender: Any, **named: Any) -> list[tuple[Callable, Exception | Any]]: ...
2729
def _live_receivers(self, sender: Any) -> list[Callable]: ...
2830

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

scripts/stubtest/allowlist_todo_django50.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ django.db.models.sql.query.Query.build_filtered_relation_q
227227
django.db.models.sql.query.Query.join
228228
django.db.models.sql.query.Query.resolve_lookup_value
229229
django.db.models.sql.query.Query.setup_joins
230-
django.dispatch.Signal.asend
231-
django.dispatch.Signal.asend_robust
232-
django.dispatch.dispatcher.Signal.asend
233-
django.dispatch.dispatcher.Signal.asend_robust
234230
django.forms.BaseForm._html_output
235231
django.forms.BaseModelFormSet.save_existing
236232
django.forms.BoundField.get_context

0 commit comments

Comments
 (0)