summaryrefslogtreecommitdiff
path: root/redis/compat.py
diff options
context:
space:
mode:
authorAndrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>2022-02-22 05:29:55 -0500
committerGitHub <noreply@github.com>2022-02-22 12:29:55 +0200
commitd56baeb683fc1935cfa343fa2eeb0fa9bd955283 (patch)
tree47357a74bf1d1428cfbcf0d8b2c781f1f971cf77 /redis/compat.py
parente3c989d93e914e6502bd5a72f15ded49a135c5be (diff)
downloadredis-py-d56baeb683fc1935cfa343fa2eeb0fa9bd955283.tar.gz
Add Async Support (#1899)
Co-authored-by: Chayim I. Kirshen <c@kirshen.com> Co-authored-by: dvora-h <dvora.heller@redis.com>
Diffstat (limited to 'redis/compat.py')
-rw-r--r--redis/compat.py9
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,
+ )