Skip to content

Missing py.typed marker file #1292

Closed
Closed
@timoffex

Description

@timoffex

https://typing.readthedocs.io/en/latest/spec/distributing.html#packaging-type-information

Package maintainers who wish to support type checking of their code MUST add a marker file named py.typed to their package supporting typing.

Without this file, mypy emits errors like this on h2 import statements:

Skipping analyzing "h2.config": module is installed, but missing library stubs or py.typed marker Mypy (import-untyped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions