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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_autodoc_typehints_gp-0.1.0a37.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_autodoc_typehints_gp-0.1.0a37-py3-none-any.whl (54.9 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_autodoc_typehints_gp-0.1.0a37.tar.gz.

File metadata

File hashes

Hashes for sphinx_autodoc_typehints_gp-0.1.0a37.tar.gz
Algorithm Hash digest
SHA256 d80b1714d28fc7305c58655f610b0c15db0a93ce61752eeb96ae9b5b1f19e0db
MD5 cb1632fb17eafac3675042ab983b0cbf
BLAKE2b-256 83a4667e4a81d8752c0a103c8bc211859aed313cc857906134ad142ce128efb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_typehints_gp-0.1.0a37.tar.gz:

Publisher: release.yml on git-pull/gp-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_autodoc_typehints_gp-0.1.0a37-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_autodoc_typehints_gp-0.1.0a37-py3-none-any.whl
Algorithm Hash digest
SHA256 826d318b1eb968edf547fe2d68081cd81ea4028b2017273823d50c0e89917113
MD5 99c477f6b0cff5f1b79ad085da8e7de5
BLAKE2b-256 51c21a384b17f70660c397a17e1f7787b5890ec45de20ed3a5e5eb9e12b83e17

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_typehints_gp-0.1.0a37-py3-none-any.whl:

Publisher: release.yml on git-pull/gp-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0a37 This release

2 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