summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-02-19 09:18:57 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2019-02-19 09:18:57 +0100
commit460d0b691f95669f0d52414d8a12ec219622dd76 (patch)
treeafb0353c9a3cd9c62d61dc3dd5a38a7d6b0b8ab6
parent7d3107441f6db2153157ad0f0de65bb18d5d0773 (diff)
downloadastroid-git-460d0b691f95669f0d52414d8a12ec219622dd76.tar.gz
Install typed ast 1.3 for Python 3.7 and earlier versions for Python 3.6
We still need to emit errors on pylint's side when keywords such as `async` are assigned to variables, but with the latest typed-ast that is already a syntax error.
-rw-r--r--astroid/__pkginfo__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py
index afc660e7..7d4047d3 100644
--- a/astroid/__pkginfo__.py
+++ b/astroid/__pkginfo__.py
@@ -30,7 +30,8 @@ install_requires = [
"six",
"wrapt",
'typing;python_version<"3.5"',
- 'typed-ast>=1.3.0;implementation_name== "cpython"',
+ 'typed-ast>=1.3.0;python_version>="3.7" and implementation_name== "cpython"',
+ 'typed-ast<1.3.0;python_version<"3.7" and implementation_name== "cpython"',
]
# pylint: disable=redefined-builtin; why license is a builtin anyway?