Add :property: option to py:method directive

This commit is contained in:
Takeshi KOMIYA
2019-04-16 20:31:43 +09:00
parent 0d1a66996b
commit a142a654fc
4 changed files with 39 additions and 10 deletions

View File

@@ -229,9 +229,13 @@ The following directives are provided for module and class contents:
The ``classmethod`` option and ``staticmethod`` option can be given (with
no value) to indicate the method is a class method (or a static method).
The ``property`` option can be given (with no value) to indicate the method
is a property.
.. versionchanged:: 2.1
``:async:``, ``:classmethod:`` and ``:staticmethod:`` options added.
``:async:``, ``:classmethod:``, ``:property:`` and ``:staticmethod:``
options added.
.. rst:directive:: .. py:staticmethod:: name(parameters)