mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-03 12:48:34 -06:00
Merge pull request #6365 from tk0miya/refactor_py_domain
Add :abstractmethod: option to py:method directive and support abstractmethod by autodoc
This commit is contained in:
8 files changed
+118
-9
No files matched your search
@@ -226,16 +226,17 @@ The following directives are provided for module and class contents:
|
||||
The ``async`` option can be given (with no value) to indicate the method is
|
||||
an async method.
|
||||
|
||||
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 ``abstractmethod``, ``classmethod`` option and ``staticmethod`` option
|
||||
can be given (with no value) to indicate the method is an abstract method,
|
||||
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:``, ``:property:`` and ``:staticmethod:``
|
||||
options added.
|
||||
``:abstractmethod:``, ``:async:``, ``:classmethod:``, ``:property:`` and
|
||||
``:staticmethod:`` options added.
|
||||
|
||||
.. rst:directive:: .. py:staticmethod:: name(parameters)
|
||||
|
||||
|
||||
Reference in new issue
Block a user