Skip to content

support for bare TypeAliasType #392

Open
astral-sh/ruff
#18156
@jorenham

Description

@jorenham

For example Unit = TypeAliasType("Unit", tuple[()]) is reported as error[invalid-type-form], independent of whether TypeAliasType is imported from typing or typing_extensions.

https://play.ty.dev/9903c4a3-6d05-4663-b282-4731ed610369

Metadata

Metadata

Assignees

Labels

featureNew feature or requesthelp wantedContributions especially welcometyping semanticstyping-module features, spec compliance, etc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions