mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-24 22:27:52 -05:00
Close #7143: py domain: Add :final: option to py:*: directives
This commit is contained in:
1 parent
9c98b92c6a
commit
87308d9607
4 files changed
+82
-2
No files matched your search
@@ -212,6 +212,15 @@ The following directives are provided for module and class contents:
|
||||
Describes an exception class. The signature can, but need not include
|
||||
parentheses with constructor arguments.
|
||||
|
||||
.. rubric:: options
|
||||
|
||||
.. rst:directive:option:: final
|
||||
:type: no value
|
||||
|
||||
Indicate the class is a final class.
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
.. rst:directive:: .. py:class:: name
|
||||
.. py:class:: name(parameters)
|
||||
|
||||
@@ -235,6 +244,15 @@ The following directives are provided for module and class contents:
|
||||
|
||||
The first way is the preferred one.
|
||||
|
||||
.. rubric:: options
|
||||
|
||||
.. rst:directive:option:: final
|
||||
:type: no value
|
||||
|
||||
Indicate the class is a final class.
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
.. rst:directive:: .. py:attribute:: name
|
||||
|
||||
Describes an object data attribute. The description should include
|
||||
@@ -283,6 +301,13 @@ The following directives are provided for module and class contents:
|
||||
|
||||
.. versionadded:: 2.1
|
||||
|
||||
.. rst:directive:option:: final
|
||||
:type: no value
|
||||
|
||||
Indicate the class is a final method.
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
.. rst:directive:option:: property
|
||||
:type: no value
|
||||
|
||||
|
||||
Reference in new issue
Block a user