diff --git a/doc/conf.py b/doc/conf.py index 02610d172b..dd946fa2e1 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -220,6 +220,13 @@ def setup(app): ), "ase": ("https://wiki.fysik.dtu.dk/ase/", None), } +numpydoc_xref_param_type = True + + +numpydoc_xref_aliases = {} +import typing +for typing_type in typing.__all__: + numpydoc_xref_aliases[typing_type] = "typing.%s" % typing_type # -- Options for HTML output -------------------------------------------------