KEMBAR78
Document how to silence flake8 etc. using # noqa · Issue #4305 · python/mypy · GitHub
Skip to content

Document how to silence flake8 etc. using # noqa #4305

@JukkaL

Description

@JukkaL

This is a common issue for people using type comments:

from typing import List  # Linter complains about unused import
a = []  # type: List[int]

# noqa helps with flake8 (and maybe other linters):

from typing import List  # noqa
a = []  # type: List[int]

Document this is common issues.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions