This website requires JavaScript.
Explore
Help
Sign In
IntenseWebs
/
sphinx
Watch
3
Star
0
Fork
0
You've already forked sphinx
mirror of
https://github.com/sphinx-doc/sphinx.git
synced
2025-02-25 18:55:22 -06:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
362f36d35d
sphinx
/
tests
/
roots
/
test-ext-autodoc
/
target
/
properties.py
12 lines
182 B
Python
Raw
Normal View
History
Unescape
Escape
Fix #7383: autodoc: Support typehints for properties py:property directive now outputs py:property directive to describe its type annotation.
2021-03-10 11:01:17 -06:00
class
Foo
:
"""
docstring
"""
@property
Close #9445: autodoc: Support class properties Since python 3.9, `classmethod` starts to support creating a "class property". This supports to generate document for it.
2021-07-17 01:02:23 -05:00
def
prop1
(
self
)
-
>
int
:
"""
docstring
"""
@classmethod
@property
def
prop2
(
self
)
-
>
int
:
Fix #7383: autodoc: Support typehints for properties py:property directive now outputs py:property directive to describe its type annotation.
2021-03-10 11:01:17 -06:00
"""
docstring
"""
Reference in New Issue
Copy Permalink