This release is a pre-release and may not be stable for production use.
sphinx-autodoc-typehints-gp
Single-package replacement for sphinx-autodoc-typehints and
sphinx.ext.napoleon — resolves annotations statically at build time,
no monkey-patching required.
Part of the gp-sphinx shared
autodoc stack: annotation normalization, cross-referenced type links, and
TYPE_CHECKING-safe resolution all live here.
Install
$ pip install sphinx-autodoc-typehints-gp
Usage
extensions = ["sphinx.ext.autodoc", "sphinx_autodoc_typehints_gp"]
# Required: makes autodoc insert type annotations into parameter descriptions.
# Without this, the type cross-referencing pipeline fires but has nothing to attach to.
autodoc_typehints = "description"
Features
- Resolves type hints statically via AST — no
exec(), notyping.get_type_hints(). - Handles
TYPE_CHECKINGblocks correctly (import-time guards are not evaluated). - No text-processing races with
sphinx.ext.napoleon. - Shared annotation normalization and rendering helpers for the
sphinx-autodoc-*family.
Documentation
See the full documentation for the API reference, helper functions, and the static resolution comparison table.
Metadata
Release files for sphinx-autodoc-typehints-gp 0.1.0a39
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sphinx_autodoc_typehints_gp-0.1.0a39.tar.gz | 52.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphinx_autodoc_typehints_gp-0.1.0a39-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 107.7 kB
Release files / sphinx_autodoc_typehints_gp-0.1.0a39.tar.gz
| Download URL | sphinx_autodoc_typehints_gp-0.1.0a39.tar.gz |
|---|---|
| Size | 52.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4eaf00be572a2ea55e1c907ce1233c9cdca90e00210171d54d6538722e3af21e
|
|
BLAKE2b-256 checksum How to use checksums |
a10e1a9961998320c8669f152926a6c3960cb9035418f3c6d878b9e31f9f868b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency logRelease files / sphinx_autodoc_typehints_gp-0.1.0a39-py3-none-any.whl
| Download URL | sphinx_autodoc_typehints_gp-0.1.0a39-py3-none-any.whl |
|---|---|
| Size | 55.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00dde56fd6a6592b1a6df01135b0ccd2a11d42fff94fb9819b5ca84589dc7e6c
|
|
BLAKE2b-256 checksum How to use checksums |
293dd49a5a1fd369a95daaa960653fc27d3b904b42c977207d10c350b375e9b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency log