types-docutils provides high-quality type hints and stub files for the docutils library, enabling static type checkers like MyPy to validate code that uses docutils. It's part of the typeshed project, which maintains external type stubs for various popular Python packages. The current version is 0.22.3.20260408, with releases tied to updates in typeshed.
pip install types-docutilsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates a basic usage of the docutils library. When types-docutils is installed, a static type checker like MyPy can analyze this code for type consistency and errors, ensuring that docutils functions are called with correct arguments and their return values are handled appropriately.
Ensure you have 'pip install docutils' in your environment alongside 'pip install types-docutils'.
Do not add 'import types_docutils' statements to your Python files. Your imports should only target the 'docutils' library itself.
Refer to the typeshed repository for 'docutils' stubs for detailed compatibility notes with specific 'docutils' runtime versions if you encounter type checking issues.
Ensure your project's Python interpreter is version 3.10 or newer. You can check with `python --version`.