Skip to content

[TSP] Expected type for TSP is returning the computed type #8060

Description

@rchiodo

Have this code here:

# bring up string literal completion inside of `""` and confirm 2 literals are suggested
e: Literal["Hello", "There"] = ""

And query Pyrefly for the expected type of e. It will return a str literal with the value "" instead of the expected type.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions