mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Python rtypes should match classes, not all objects
This commit is contained in:
parent
d59fdda8c9
commit
5873c9644d
@ -189,7 +189,7 @@ class PyObject(ObjectDescription):
|
||||
Field('returnvalue', label=l_('Returns'), has_arg=False,
|
||||
names=('returns', 'return')),
|
||||
PyField('returntype', label=l_('Return type'), has_arg=False,
|
||||
names=('rtype',), bodyrolename='obj'),
|
||||
names=('rtype',), bodyrolename='class'),
|
||||
]
|
||||
|
||||
allow_nesting = False
|
||||
|
Loading…
Reference in New Issue
Block a user