diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-11-16 08:47:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 08:47:36 -0500 |
commit | 7468723697e4d292315ce807b5000062a02b37be (patch) | |
tree | d35e7f391f31ceb427dfbb97f02c0e355f612247 /synapse/util/caches/deferred_cache.py | |
parent | Properly register all callback hooks for legacy password authentication provi... (diff) | |
download | synapse-7468723697e4d292315ce807b5000062a02b37be.tar.xz |
Add most missing type hints to synapse.util (#11328)
Diffstat (limited to 'synapse/util/caches/deferred_cache.py')
-rw-r--r-- | synapse/util/caches/deferred_cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/deferred_cache.py b/synapse/util/caches/deferred_cache.py index da502aec11..3c4cc093af 100644 --- a/synapse/util/caches/deferred_cache.py +++ b/synapse/util/caches/deferred_cache.py @@ -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 |