Skip to content

Commit d095608

Browse files
committed
Make typing_extensions conditional to Python < 3.8
All the typing features used by redis-py are available in Python 3.8+, so typing_extensions is not used at all in newer versions of Python. Adjust the dependencies accordingly.
1 parent ef4caf5 commit d095608

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
async-timeout>=4.0.2
22
deprecated>=1.2.3
33
packaging>=20.4
4-
typing-extensions
4+
typing-extensions; python_version<"3.8"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"deprecated>=1.2.3",
3636
"packaging>=20.4",
3737
'importlib-metadata >= 1.0; python_version < "3.8"',
38-
"typing-extensions",
38+
'typing-extensions; python_version<"3.8"',
3939
"async-timeout>=4.0.2",
4040
],
4141
classifiers=[

0 commit comments

Comments
 (0)