Skip to content

Missing error for Final in top level of type alias statement #3150

@MeGaGiGaGon

Description

@MeGaGiGaGon

Summary

Playground

from typing import Final
# Expected error: Type qualifiers are not allowed in type alias definitions (invalid-type-form)
type A = Final[int]  # No error

This should give an error, like how the manual type alias version does https://play.ty.dev/8f204899-4720-44bb-b9bd-c86d72f86aed

Version

playground 229e49f20

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions