Skip to content

"editor.formatOnType" breaks return annotations #1442

Closed
@brettcannon

Description

@brettcannon

Actual behavior

def foo(a: int) -> bool:

becomes

def foo(a: int) - > bool:

and loses the indentation.

Expected behavior

To not change and indent on Enter.

Metadata

Metadata

Assignees

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