Skip to content

mypy option to error if there's a missing py.typed #16960

Closed as not planned
Closed as not planned
@jamesbraza

Description

@jamesbraza

Feature

I often see people making packages, type checking them with mypy, and forgetting to include a py.typed file.

Pitch

Can we add a new option to mypy to error if someone has a package without a py.typed file? It would be nice if mypy could catch this common type of error (forgetting a py.typed file).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions