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:
Takeshi KOMIYA
2021-07-17 14:24:31 +09:00
parent 939c7bb7ff
commit 120525563c
4 changed files with 35 additions and 7 deletions

View File

@@ -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