Skip to content

Semantic highlighting of TypeAliases of Unions is not consistent with non unions. #6854

@rchiodo

Description

@rchiodo

For this code here, I get this: (with what's in main and is about to ship):

Number: TypeAlias = int | float

def return_number() -> Number:
    return 1    

Image

But for this code here, I get this:

Number: TypeAlias = int

def return_number() -> Number:
    return 1    

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions