summaryrefslogtreecommitdiff
path: root/django/dispatch
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2025-07-22 20:44:22 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit78298b51629e14c0e472898b635bc819d47b7f27 (patch)
treefc3302ebacba36e9b06d12f90b557c9314b9be1f /django/dispatch
parent69a93a88edb56ba47f624dac7a21aacc47ea474f (diff)
Refs #36500 -- Corrected rewrapped long lines fixed via a script.
Manually reformatted some comments and docstrings where autofix_w505.py changed the meaning of the formatting.
Diffstat (limited to 'django/dispatch')
-rw-r--r--django/dispatch/__init__.py4
-rw-r--r--django/dispatch/dispatcher.py10
2 files changed, 10 insertions, 4 deletions
diff --git a/django/dispatch/__init__.py b/django/dispatch/__init__.py
index bd219b4809..57295ae995 100644
--- a/django/dispatch/__init__.py
+++ b/django/dispatch/__init__.py
@@ -1,8 +1,8 @@
"""Multi-consumer multi-producer dispatching mechanism
Originally based on pydispatch (BSD)
-https://pypi.org/project/PyDispatcher/2.0.1/ See license.txt for original
-license.
+https://pypi.org/project/PyDispatcher/2.0.1/
+See license.txt for original license.
Heavily modified for Django's purposes.
"""
diff --git a/django/dispatch/dispatcher.py b/django/dispatch/dispatcher.py
index eed321c690..120f2ac6de 100644
--- a/django/dispatch/dispatcher.py
+++ b/django/dispatch/dispatcher.py
@@ -29,8 +29,14 @@ class Signal:
Internal attributes:
receivers:
- [((id(receiver), id(sender)), ref(receiver), ref(sender),
- is_async)]
+ [
+ (
+ (id(receiver), id(sender)),
+ ref(receiver),
+ ref(sender),
+ is_async,
+ )
+ ]
sender_receivers_cache:
WeakKeyDictionary[sender, list[receiver]]
"""