API refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-07 16:25:52 +09:00
parent 76d0d86211
commit 91c7e04474
1171 changed files with 81940 additions and 44117 deletions

View File

@@ -54,6 +54,9 @@ def _boundmethod_safe_weakref(obj):
def _make_lookup_key(receiver, sender, dispatch_uid):
if dispatch_uid:
return (dispatch_uid, _make_id(sender))
# Issue #9119 - retry-wrapped functions use the underlying function for dispatch_uid
elif hasattr(receiver, '_dispatch_uid'):
return (receiver._dispatch_uid, _make_id(sender))
else:
return (_make_id(receiver), _make_id(sender))
@@ -170,6 +173,7 @@ class Signal: # pragma: no cover
# it up later with the original func id
options['dispatch_uid'] = _make_id(fun)
fun = _retry_receiver(fun)
fun._dispatch_uid = options['dispatch_uid']
self._connect_signal(fun, sender, options['weak'],
options['dispatch_uid'])