Skip to content

py.typed files missing? #471

Open
Open
@steve-mavens

Description

@steve-mavens

Everything has type annotations, but there's no py.typed files in the top-level packages to tell mypy that it should use them: https://peps.python.org/pep-0561/#packaging-type-information

Is this intentional, or just an oversight? I think the py.typed mechanism is there because some people use annotations internally, but their annotations perhaps aren't accurate enough for their library's users to rely on. So they don't want to "publish" them, even though they're right there in the shipped code. Omitting the py.typed file means that the annotations aren't usable.

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