Skip to main content
Pre-release

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(), no typing.get_type_hints().
  • Handles TYPE_CHECKING blocks 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.0a38

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-autodoc-typehints-gp 0.1.0a38
File Size Uploaded
sphinx_autodoc_typehints_gp-0.1.0a38.tar.gz 52.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-autodoc-typehints-gp 0.1.0a38
File Interpreter ABI Platform
sphinx_autodoc_typehints_gp-0.1.0a38-py3-none-any.whl Python 3 none any Details

Total release size: 107.2 kB

Release files / sphinx_autodoc_typehints_gp-0.1.0a38.tar.gz

Download URL sphinx_autodoc_typehints_gp-0.1.0a38.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d40ce89f68d47bfa2af4f031028b52315f6ca6aaa00cca8b20f486febf9d3d3c
BLAKE2b-256 checksum
How to use checksums
37ba489c1092e46222a90a2a78bddac2199ec12111dd7e0e2370befc379ecc08
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 Aug 30, 2026.

Transparency log

Release files / sphinx_autodoc_typehints_gp-0.1.0a38-py3-none-any.whl

Download URL sphinx_autodoc_typehints_gp-0.1.0a38-py3-none-any.whl
Size 54.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4348a841fbe0644cc61063b0b00a38b1223570b82a1164aad0694b3f58ac6f9f
BLAKE2b-256 checksum
How to use checksums
1960ebec25c2485237d4e4bd1ae54f64c9594b8953aea70e07e209bf35d64eab
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 Aug 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a38 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page