diff options
Diffstat (limited to 'redis/compat.py')
-rw-r--r-- | redis/compat.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/redis/compat.py b/redis/compat.py new file mode 100644 index 0000000..738687f --- /dev/null +++ b/redis/compat.py @@ -0,0 +1,9 @@ +# flake8: noqa +try: + from typing import Literal, Protocol, TypedDict # lgtm [py/unused-import] +except ImportError: + from typing_extensions import ( # lgtm [py/unused-import] + Literal, + Protocol, + TypedDict, + ) |