Skip to content

Mypy complains about adrf.APIView when running in strict mode #54

@LuisGMM

Description

@LuisGMM

Running mypy with the stric flag:

mypy views --check-untyped-defs --strict

Caused several errors of the kind:

views.py:48: error: Class cannot subclass "APIView" (has type "Any")  [misc]

Would it be possible to improve the typing of the package to include the py.typed file and these little details?

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