Skip to content

Question: Why not *-stubs but types-* in typeshed? #7434

@eggplants

Description

@eggplants

As the title says. Is the reason simply to make a distinction?


Ref:

https://mypy.readthedocs.io/en/stable/installed_packages.html#using-installed-packages-with-mypy-pep-561

As many packages don’t support type checking yet, you may also have to install a separate stub package, usually named types-<library>.

https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages

If the package is stub-only (not imported at runtime), the package should have a prefix of the runtime package name and a suffix of -stubs.

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