Skip to content

type alias to FunctionType with generics is treated as if it's not evaluated at runtime #693

@DetachHead

Description

@DetachHead
Foo = FunctionType[[], int]  # error: use __future__.annotations
from __future__ import annotations

Foo = FunctionType[[], int]  # no error, crashes at runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions