We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ast.parse(type_comments=True)
file_tokens
Python 3.8 added the ability to include type comments in the abstract syntax tree.
Currently pyflakes uses tokenize to find the comments, which is slow. Using type_comments from ast when available would be much faster.
tokenize
ast
The text was updated successfully, but these errors were encountered:
maybe a better option would be to drop the type comments support entirely -- now that python 2 is very obsolete
the problem with type_comments=True is pyflakes has no way to signal to flake8 that it needs a special ast parse
type_comments=True
Sorry, something went wrong.
Ahh, yeah, that makes sense.
let's keep this open in case we decide to drop comments
# type:
Successfully merging a pull request may close this issue.
Python 3.8 added the ability to include type comments in the abstract syntax tree.
Currently pyflakes uses
tokenize
to find the comments, which is slow. Using type_comments fromast
when available would be much faster.The text was updated successfully, but these errors were encountered: