Skip to content

Line break and tab indentation makes wrong fix #1714

@PicoSushi

Description

@PicoSushi

isort causes odd fixing with import line which contains line berak and tab indentation.

before isort (Notice that this code uses Tab indentation, not spaces.)

from sys \
	import version
print(version)

after isort

from sys import importversion

print(version)

expected

from sys import version

print(version)

Versions

  • macOS Big Sur 11.2.3
  • Python 3.9.4
  • isort 5.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions