Skip to content

Formatter: Preserve end-of-line comments in imports #6067

@konstin

Description

@konstin

We turn dangling end-of-line comments in the parentheses of import-from into own line comments instead of preserving them

black:

from .fields import (  # NOQA
    GeometryField,
)

ours:

from .fields import (
    # NOQA
    GeometryField,
)

Metadata

Metadata

Assignees

Labels

formatterRelated to the formatter

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions