-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
The following code renders the annotation on the method but not the property:
class Foo:
@property
def prop(self) -> int:
""" the prop """
def get_prop(self) -> int:
""" get the prop """.. autoclass:: Foo
:members:Expected output:
Foo
property prop -> int
the prop
get_prop() -> int
get the prop
actual output
Foo
property prop
the prop
get_prop() -> int
get the prop
Environment info
- OS: Win
- Python version: 3.8
- Sphinx version: 3.0.0b1
- Sphinx extensions: sphinx.ext.autodoc
petsuter, UgnilJoZ, felix-hilden, AntoinePrv, pavel-kirienko and 4 more