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 committed 2021-07-17 14:24:31 +09:00
1 parent 939c7bb7ff
commit 120525563c
4 files changed
+35 -7

No files matched your search

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