Skip to content

Return value in method of example TypeVarTuple is incorrectly typed #98602

Closed
@Eclips4

Description

@Eclips4

typehint of __abs__ Method of Array(in example related to typing.TypeVarTuple) class causes NameError.
def __abs__(self) -> Array[*Shape]: ... should be def __abs__(self) -> "Array[*Shape]": ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions