Skip to content

Format on type adds unnecessary spaces #1790

Closed

Description

x = 0
y = 1
if x() == -y:
    print("THAT")

turns into:

x = 0
y = 1
if x() == - y:
    print("THAT")

Brett Cannon (@brettcannon) please confirm this is a bug. Based on my knowledge of Pep8 this is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions