Skip to content

provide type returns Unknown for type aliases #2975

@KotlinIsland

Description

@KotlinIsland

Describe the Bug

from typing import TypeAlias

A: TypeAlias = int | str

def f() -> A: ...

f # def mod.f() -> Unknown

hover / inlay hint works correctly, but provide type doesn't

@yangdanny97 i've tried to investigate why, but i can't figure it out :(

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

Labels

language-serverIssues specific to our IDE integration rather than type checking

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions