Skip to content

TypeVars cannot refer to type variables #2756

@danr

Description

@danr

We define a type variable A:

A = TypeVar('A')

The following gives the error Invalid type A:

IterA = TypeVar('IterA', Iterator[A], Iterable[A])

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions