Merge pull request #6397 from tk0miya/6361_autodoc_typehints

Close #6361: autodoc: Add autodoc_typehints to suppress typehints from signature
This commit is contained in:
Takeshi KOMIYA
2019-06-01 01:07:37 +09:00
committed by GitHub
5 changed files with 85 additions and 0 deletions

View File

@@ -429,6 +429,16 @@ There are also config values that you can set:
This config value only requires to declare the top-level modules that
should be mocked.
.. confval:: autodoc_typehints
This value controls how to represents typehints. The setting takes the
following values:
* ``'signature'`` -- Show typehints as its signature (default)
* ``'none'`` -- Do not show typehints
.. versionadded: 2.1
.. confval:: autodoc_warningiserror
This value controls the behavior of :option:`sphinx-build -W` during