diff options
author | Erik Johnston <erik@matrix.org> | 2022-07-15 15:31:57 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2022-07-15 15:31:57 +0100 |
commit | a22716c5c58f1ee80b5e830fd433b6d8b0b19fa2 (patch) | |
tree | e94b3971f9ebfe702e2f51c287d434bbc138eaae | |
parent | Newsfile (diff) | |
download | synapse-a22716c5c58f1ee80b5e830fd433b6d8b0b19fa2.tar.xz |
Fix literal
-rw-r--r-- | synapse/util/caches/dictionary_cache.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/synapse/util/caches/dictionary_cache.py b/synapse/util/caches/dictionary_cache.py index ef4483421e..810b8bb716 100644 --- a/synapse/util/caches/dictionary_cache.py +++ b/synapse/util/caches/dictionary_cache.py @@ -14,20 +14,10 @@ import enum import logging import threading -from typing import ( - Any, - Dict, - Generic, - Iterable, - Literal, - Optional, - Set, - Tuple, - TypeVar, - Union, -) +from typing import Any, Dict, Generic, Iterable, Optional, Set, Tuple, TypeVar, Union import attr +from typing_extensions import Literal from synapse.util.caches.lrucache import LruCache from synapse.util.caches.treecache import TreeCache, iterate_tree_cache_items |