Closed as not planned
Description
The scope types include "class name" and "funk name" to match the names in, e.g., class and function declarations. However, it does not include a "type name" to match the name in a type declaration. I propose we add such a scope type.
// TypeScript
export type Tuple[A, B] = [A, B]
// ^^^^^
# Python
_A = TypeVar("_A")
_B = TypeVar("_B")
Tuple: TypeAlias = tuple[_A, _B]
#^^^^
-- Haskell
type Tuple a b = (a, b)
-- ^^^^^
data Tuple a b = Tuple a b
-- ^^^^^
Metadata
Metadata
Assignees
Labels
No labels