mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-02 20:30:30 -06:00
Cloase #9445: :py:property: directive now supports :classmethod: option
Since python 3.9, `classmethod` starts to support creating a "class property". This allows to describe it.
This commit is contained in:
1 parent
939c7bb7ff
commit
120525563c
4 files changed
+35
-7
No files matched your search
@@ -329,6 +329,13 @@ The following directives are provided for module and class contents:
|
||||
|
||||
Indicate the property is abstract.
|
||||
|
||||
.. rst:directive:option:: classmethod
|
||||
:type: no value
|
||||
|
||||
Indicate the property is a classmethod.
|
||||
|
||||
.. versionaddedd: 4.2
|
||||
|
||||
.. rst:directive:option:: type: type of the property
|
||||
:type: text
|
||||
|
||||
|
||||
Reference in new issue
Block a user