use type hints instead of :type and :rtype

This commit is contained in:
Anthony Sottile 2022-01-05 14:07:13 -05:00
parent e1d737906c
commit 741ff11bfb
16 changed files with 77 additions and 184 deletions

View file

@ -19,7 +19,7 @@ import flake8
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = "1.3"
needs_sphinx = "2.1"
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@ -306,3 +306,5 @@ extlinks = {
"issue": ("https://github.com/pycqa/flake8/issues/%s", "#"),
"pull": ("https://github.com/pycqa/flake8/pull/%s", "#"),
}
autodoc_typehints = "description"