ship-type-information
Ship complete, verified type information for a Python package. Add annotations to untyped code (autotyping, infer-types, pyrefly infer, MonkeyType), drop the py.typed marker (PEP 561), and generate .pyi stubs for compiled C/C++/Rust extensions (nanobind stubgen, pybind11-stubgen, mypy stubgen, pyo3-stub-gen; __text_signature__ for hand-written C). Verify with mypy, pyright (--verifytypes), ty, and pyrefly plus stubtest, then package the stubs so the built wheel actually carries them. Pairs with pybind11-to-nanobind, port-to-python-limited-api, and port-to-free-threaded-python. Use when asked to add type annotations, ship py.typed, generate or fix .pyi stubs for a C extension, make a package typed, or fix "module is untyped" / Any results downstream.
Pinned to revision 0c51c24122b3, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/ship-type-information/SKILL.md
- skills/ship-type-information/AGENTS.md
- skills/ship-type-information/README.md
- skills/ship-type-information/reference/annotating.md
- skills/ship-type-information/reference/stubs.md
- skills/ship-type-information/reference/verify-and-ship.md
- skills/ship-type-information/reference/why-types.md
Every link opens the file at its source, pinned to the revision this page describes.