Skip to content

Format on type adds unnecessary spaces #1790

Closed
@DonJayamanne

Description

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

turns into:

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

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

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