Skip to content

[Stylistic] Enforce a space after # pyright:, # mypy: and # noqa: comments #465

@Avasam

Description

@Avasam

This comes from python/typeshed#11497 (comment)
# pyright:ignore --> # pyright: ignore
# type:ignore --> # type: ignore
# noqa:Y011 --> # noqa: Y011

This could probably be generalised further, but would likely fall out of scope of flake8-pyi

Formatters (black and Ruff) already take of adding a space after #

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions