Skip to content

[Python3][Color Scheme] Return type for python method mess up the color scheme #11116

@AndreeaDieaconu

Description

@AndreeaDieaconu

Environment data

Version: 1.44.0
Commit: 2aae1f26c72891c399f860409176fe435a154b13
Date: 2020-04-08T08:23:56.137Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.7.0

macOS Mojave 10.14.6
Python3.8

Expected behaviour

The color scheme should be the same when providing the return type (e.g ... -> Coalition - line 15 in the below screenshot) of a method as in the case when the return type is not provided.

Below you can see how the color scheme looks like when the return type is not provided. (e.g. the return statement is colored - line 23 or 29)
code-without-return-type

Actual behaviour

The color scheme is broken when the return type is provided. (e.g. the return statement is not colored - line 23 or 29)
code-with-return-type

The difference in the two provided screenshots lies in the following lines: 15, 25, and 28.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions