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

--warn-annotation-comments #7486

Open
srittau opened this issue Sep 9, 2019 · 1 comment
Open

--warn-annotation-comments #7486

srittau opened this issue Sep 9, 2019 · 1 comment

Comments

@srittau
Copy link
Contributor

srittau commented Sep 9, 2019

I think having a linter option warning about old-style type comment annotations, instead of PEP 3107/526 annotations, would be useful. (With the obvious exception of # type: ignore comments.) This is potentially something that would make more sense in linters like flake8, but mypy also feels like a natural place where such an option could exist.

@ilevkivskyi
Copy link
Member

Note that there are tools that can clean this up in a single pass, like https://github.com/ilevkivskyi/com2ann.

On one hand, this is very simple to implement, on the other hand this will add an option that will soon be irrelevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants