mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 02:14:49 -04:00
Add types to synapse.util. (#10601)
This commit is contained in:
parent
ceab5a4bfa
commit
524b8ead77
41 changed files with 400 additions and 253 deletions
|
@ -122,7 +122,7 @@ class BatchingQueue(Generic[V, R]):
|
|||
|
||||
# First we create a defer and add it and the value to the list of
|
||||
# pending items.
|
||||
d = defer.Deferred()
|
||||
d: defer.Deferred[R] = defer.Deferred()
|
||||
self._next_values.setdefault(key, []).append((value, d))
|
||||
|
||||
# If we're not currently processing the key fire off a background
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue