Skip to content

Proper way to specify type annotation of a MapAttribute subclass? #682

Open
@andrewli1030

Description

@andrewli1030

Supposed I define a MapAttribute subclass like follows:

class MyMapAttribute(MapAttribute):
    pass

When I run pre-commit's (rev 2.1.0) mypy hook (rev 0.701), I run into the following error:

error: Missing type parameters for generic type

I am using pynamodb==4.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions