Skip to content

Format type: ignore comments #2601

@KotlinIsland

Description

@KotlinIsland

Type ignore comments are standard constructs in python code. I think it would be based if black formatted them.

a: SUS = "AMONGUS" + 1  # type:ignore     [   name-defined      ,    operator     ,misc    ]

Could be formatted to:

a: SUS = "AMONGUS" + 1  # type: ignore[name-defined, operator, misc]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions