Skip to content

# type: ignored imports aren't picked up when they are added in incremental mode #4856

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

Closed
msullivan opened this issue Apr 4, 2018 · 1 comment
Labels

Comments

@msullivan
Copy link
Collaborator

[case testSuppressedImportAdded1]
import a
[file a.py]
import foo  # type: ignore
[file foo.py.2]
2+'2'
[out]
[out2]
tmp/foo.py:1: error: Unsupported operand types for + ("int" and "str")

Reports no error in the second pass.

We do pick it up and properly update dependencies to it if it is specified on the command line, so this only comes up when following imports.

@ilevkivskyi
Copy link
Member

I think this is essentially a duplicate of #1910

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

No branches or pull requests

3 participants