Skip to content

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

Closed
@msullivan

Description

@msullivan
[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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions