docutils-stubs
PEP 561 type stubs for docutils
What it is and what it does
docutils-stubs is a type stub package that adds PEP 561 compliant type information to the docutils library. When installed alongside docutils, it allows static type checkers like mypy and IDEs to understand the types and signatures of docutils functions and classes, enabling better autocompletion, inline documentation, and type-checking errors during development.
The package is a thin wrapper—it contains only type definitions, not runtime code. It depends on docutils itself and is intended to be used as a development dependency. However, the project has been abandoned since early 2022, meaning no updates have been made to reflect changes in docutils or to fix any type stub issues discovered after that date.
Use it for:
- Enable mypy or other type checkers to validate code that uses docutils without type errors
- Improve IDE autocomplete and inline help when writing docutils-based document processing scripts
- Support type-aware refactoring in editors for projects that manipulate reStructuredText or other docutils formats
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides PEP 561 type stubs for docutils, enabling type checking and IDE autocompletion when working with the docutils library.
Yes, if you need type checking for docutils and are using a version released before early 2022. No, if you require active maintenance or are using recent docutils versions—the package is abandoned and may have incomplete or outdated type coverage. Consider checking whether docutils itself now includes inline type hints before installing this stub package.
Install
docutils-stubs on PyPI
pip
pip install docutils-stubsuv
uv add docutils-stubspoetry
poetry add docutils-stubsInstalling docutils-stubs
Before you install
Low friction to install as a pure-Python wheel. However, the package is abandoned—last release was 2022-01-02, over 1685 days ago. No active maintenance or updates.
License in practice
Licensed under the Unlicense (permissive), placing the package in the public domain with minimal restrictions on use or modification.
Quickstart
pip install docutils-stubs
import docutils.core
# Type checker now understands docutils APIs
Requires docutils to be installed separately; stubs alone do not provide runtime functionality.
Verify before relying
- Whether type stub coverage is complete for all docutils APIs or only a subset
- Compatibility with recent docutils versions released after 2022-01-02
- Whether the stubs work with current type checkers (mypy, pyright, etc.)
Package facts
| License | Unlicense (permissive) |
| Python support | supports the current Python release (>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — docutils |
| Maintenance | abandoned — 1,685 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 185,508/month — #10,010 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: docutils_stubs-0.0.22-py3-none-any.whl
Tags
More Documentation packages
Docutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
types-PillowProvides type stubs for Pillow, enabling static…
permissive · top 5,000 on PyPI
pybind11-stubgenGenerates PEP 561 type stubs for Python binary…
permissive · top 5,000 on PyPI
types-beautifulsoup4Provides type hints for beautifulsoup4 code via…
permissive · top 5,000 on PyPI
pyspark-stubsProvides type stubs for PySpark to enable…
permissive · top 15,000 on PyPI
types-backportsProvides PEP 561 type stubs for the backports…
permissive · top 15,000 on PyPI
pymupdf-stubsProvides type stubs for PyMuPDF to enable…
permissive · top 15,000 on PyPI
types-humanfriendlyProvides PEP 561 type stubs for the…
permissive · top 15,000 on PyPI
typeshed-clientRetrieves stub file paths, AST nodes, and…
permissive · top 5,000 on PyPI
types-FlaskProvides PEP 561 type stubs for Flask to enable…
permissive · top 5,000 on PyPI
collective.checkdocsAdds distutils commands to validate and preview…
copyleft · top 15,000 on PyPI