Skip to content

Ignore specific lines #500

Closed
Closed
@Shookit

Description

@Shookit

I don't know if this is intentionally omitted, or if I'm just not aware of the functionality, but is there any way to ignore mypy errors line-by-line?

For instance, one of the files I'm using mypy on works, but for certain lines...

graph.py, line 3: No module named 'numpy'
graph.py, line 4: No module named 'matplotlib.pyplot'
graph.py, line 5: No module named 'scipy.stats'
graph.py, line 155: Unexpected keyword argument "key" for "max"

...mypy gives errors incorrectly that I'd like to ignore (the modules do exist, and max does take the 'key' argument).

Is there any way to skip these lines, such as in a linter, or a way to hint to mypy that these are valid?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions