mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[Napoleon] Removes Python 2/3 compatible type annotation doc example, because they aren't current supported by Sphinx
This commit is contained in:
parent
e3c3e4f0cb
commit
8eecdbd715
@ -213,24 +213,6 @@ Google style with Python 3 type annotations::
|
||||
"""
|
||||
return True
|
||||
|
||||
Google style with `Python 2/3 compatible annotations`_::
|
||||
|
||||
def func(arg1, arg2):
|
||||
# type: (int, str) -> bool
|
||||
"""Summary line.
|
||||
|
||||
Extended description of function.
|
||||
|
||||
Args:
|
||||
arg1: Description of arg1
|
||||
arg2: Description of arg2
|
||||
|
||||
Returns:
|
||||
Description of return value
|
||||
|
||||
"""
|
||||
return True
|
||||
|
||||
Google style with types in docstrings::
|
||||
|
||||
def func(arg1, arg2):
|
||||
@ -248,6 +230,10 @@ Google style with types in docstrings::
|
||||
"""
|
||||
return True
|
||||
|
||||
.. Note::
|
||||
`Python 2/3 compatible annotations`_ aren't currently
|
||||
supported by Sphinx and won't show up in the docs.
|
||||
|
||||
.. _PEP 484:
|
||||
https://www.python.org/dev/peps/pep-0484/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user