mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 16:44:08 -04:00
Add most missing type hints to synapse.util (#11328)
This commit is contained in:
parent
3a1462f7e0
commit
7468723697
10 changed files with 161 additions and 165 deletions
|
@ -289,7 +289,7 @@ class DeferredCache(Generic[KT, VT]):
|
|||
callbacks = [callback] if callback else []
|
||||
self.cache.set(key, value, callbacks=callbacks)
|
||||
|
||||
def invalidate(self, key) -> None:
|
||||
def invalidate(self, key: KT) -> None:
|
||||
"""Delete a key, or tree of entries
|
||||
|
||||
If the cache is backed by a regular dict, then "key" must be of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue