summaryrefslogtreecommitdiff
path: root/tests/test_util_docstrings.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-11-08 13:17:28 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-11-10 02:41:58 +0900
commit6d1cafe7bd0ec10f453952b51aff80eb6f44c7b0 (patch)
treecbcfa3fa5e348132707d33dbdeda122f3571b721 /tests/test_util_docstrings.py
parente2c969c4955662a8c5e4da8b77672aaaa7729359 (diff)
downloadsphinx-git-6d1cafe7bd0ec10f453952b51aff80eb6f44c7b0.tar.gz
autodoc: Add Optional[t] to annotation of function and method
As typing.get_type_hints() doing, this adds Optional[t] to type annotations if a default value equal to None is set. Note: this is default behavior of inspect.signature() since Python 3.10.
Diffstat (limited to 'tests/test_util_docstrings.py')
0 files changed, 0 insertions, 0 deletions