Skip to content

Input with semicolon after multi-line import is corrupted #1918

@andersk

Description

@andersk

On this weird but valid input:

from os import \
    name; print(name)

isort (5.10.1 or main at c6a4196) produces this invalid output:

from os import name, name;, print

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions