# sphinx-autodoc-typehints

> Render Python type hints in Sphinx autodoc documentation

Source: https://talira.ai/catalog/sphinx-autodoc-typehints-qhhdd7dq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / documentation / docs sites](https://talira.ai/categories/developer-tools/documentation/docs-sites), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [tox-dev](https://talira.ai/orgs/tox-dev.md)

sphinx-autodoc-typehints is a [Sphinx](https://talira.ai/catalog/sphinx-3r9akc1j.md) extension that reads the type hints of the code autodoc documents and writes them into the parameter and return fields, so each type is stated once, in the code. It links every part of a type to its documentation, resolves names imported only for type checkers (inside `if TYPE_CHECKING:`) or declared in `.pyi` stubs, documents `@overload` variants and default values, and types Google and NumPy style docstrings for napoleon or numpydoc. It's maintained by the tox-dev organization.

## Links

- GitHub: https://github.com/tox-dev/sphinx-autodoc-typehints
- Docs: https://sphinx-autodoc-typehints.readthedocs.io/

## Problems it solves

- show Python type hints in Sphinx API docs
- stop repeating types in docstrings and annotations
- document typing overloads with Sphinx autodoc

## Features

- type hints written into parameter and return fields
- links each part of a type to its docs
- resolves TYPE_CHECKING imports and .pyi stubs
- documents overloads and defaults
- works with napoleon and numpydoc

## Trust

Overall: 0.60 out of 1.
Signals: maintenance 1.00, adoption 0.55, momentum 0.22, community 0.75, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 359 commits in the last 90 days
- latest release 3.17.7 6 days ago
- 588 GitHub stars
- 73 contributors
- accepts sponsorship (Github, Tidelift, Thanks Dev)
- backed by tox-dev

## Related

- Works with [Sphinx](https://talira.ai/catalog/sphinx-3r9akc1j.md)

## Alternatives

- [Sphinx](https://talira.ai/catalog/sphinx-3r9akc1j.md): Create intelligent and beautiful documentation with ease
- [numpydoc](https://talira.ai/catalog/numpydoc-f2kx8n1y.md): Sphinx extension for NumPy-style docstrings
- [sphinx-autobuild](https://talira.ai/catalog/sphinx-autobuild-hp1znhhk.md): Rebuild Sphinx docs on changes, with hot reloading in the browser
- [PyData Sphinx Theme](https://talira.ai/catalog/pydata-sphinx-theme-v6j25xzx.md): Clean, three-column, Bootstrap-based theme for Sphinx docs
- [Read the Docs Sphinx Theme](https://talira.ai/catalog/read-the-docs-sphinx-theme-cqvqz7gs.md): The Read the Docs theme for Sphinx documentation
- [MyST-Parser](https://talira.ai/catalog/myst-parser-6shx6kdj.md): Write Sphinx and Docutils documentation in MyST Markdown

## Sources

[^1]: https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/LICENSE (checked 29 Nov 2026)
