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

Support mypy-style "# type: ignore[code]" comments #545

Closed
ikonst opened this issue May 14, 2020 · 1 comment
Closed

Support mypy-style "# type: ignore[code]" comments #545

ikonst opened this issue May 14, 2020 · 1 comment

Comments

@ikonst
Copy link

ikonst commented May 14, 2020

mypy has (error codes)[https://mypy.readthedocs.io/en/stable/error_codes.html] now and an extended # type: ignore[code, ...] syntax.

Running flake8 on

foo.bar  # type: ignore[attr-defined]

yields

test.py:1: [F821] undefined name 'ignore'
test.py:1: [F821] undefined name 'attr'
test.py:1: [F821] undefined name 'defined'
@asottile
Copy link
Member

duplicate of #500 #489 #475 #455

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

No branches or pull requests

2 participants