Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require python 3.6 #9

Merged
merged 1 commit into from
May 23, 2017
Merged

require python 3.6 #9

merged 1 commit into from
May 23, 2017

Conversation

JelleZijlstra
Copy link
Collaborator

Currently flake8-pyi only works on 3.6 because I put a variable annotation somewhere in pyi.py by accident. That's easy to fix, but I think we should require 3.6 only anyway, because several typeshed stubs now also use PEP 526-style annotations.

I tried to work around the problem by hacking flake8 to use typed-ast to parse stubs, but that doesn't really work because flake8 gets confused when it gets a typed_ast.ast3.Store instead of an ast.Store. I suppose we could translate the typed-ast AST to an ast AST, but life is too short for that.

Related: python/mypy#3398.

@ambv ambv merged commit e1db7a0 into PyCQA:master May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants