mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Since python 3.9, `classmethod` starts to support creating a "class property". This supports to generate document for it.
12 lines
182 B
Python
12 lines
182 B
Python
class Foo:
|
|
"""docstring"""
|
|
|
|
@property
|
|
def prop1(self) -> int:
|
|
"""docstring"""
|
|
|
|
@classmethod
|
|
@property
|
|
def prop2(self) -> int:
|
|
"""docstring"""
|