Skip to content

Commit 79b0f1a

Browse files
authored
Install typing when Python is older than 3.6 (#239)
1 parent f41cb34 commit 79b0f1a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
PyYAML ~= 3.11
22
ansicolor ~= 0.2.4
33
chardet >= 2.3.0
4-
typing >= 3.6.2

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ def install_requires():
1515
requires.append('enum34 >= 1.0.4')
1616
# To enable pathlib in Python < 3.4
1717
requires.append('pathlib == 1.0.1')
18+
19+
if sys.version_info < (3, 6):
20+
# To enable typing in Python < 3.6
21+
requires.append('typing >= 3.6.2')
22+
1823
return requires
1924

2025

0 commit comments

Comments
 (0)