Skip to content

Add a py.typed marker for mypy #95

@bobthemighty

Description

@bobthemighty

Per PEP 561 package maintainers can distribute type information with their libraries. Since you've gone to the effort of adding type hints to your code, if you add a py.typed to the codebase and include it in the package, mypy will understand that it can read type information from your source code.

ATM, I need to add an exception for this lib so that our mypy checks pass, which is a shame, given that the type information is present.

https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreTasks such as style improvements or refactoringgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions