Skip to content

Attempt to create a subclass of a generic class results in TypeError: '_AnyCall' object isn't subscriptable #755

@ANogin

Description

@ANogin

I have

T = TypeVar('T')

class Foo(Generic[T]):
   ...

class Bar(Foo[Something]):
   ...

And micropython complains:

TypeError: '_AnyCall' object isn't subscriptable

for the Foo[Something]...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions