API Reference¶
A Sphinx directive to specify that a module has extra requirements, and show how to install them.
Functions:
|
Format the value as a string. |
|
Returns a dictionary mapping argument names to parameters/arguments for a function. |
|
Obtains the default values for the arguments of a class. |
Obtains the default values for the arguments of a function. |
|
Prepare the formatting of the default value. |
|
|
Add default values to the docstring. |
|
Setup Sphinx Extension. |
Data:
Regular expression to match default values declared in docstrings. |
|
Regular expression to match flags in docstrings to suppress default values. |
-
default_regex
¶ Type:
Pattern
Regular expression to match default values declared in docstrings.
Pattern
:regex:`^:(default|Default) `
Flags
-
format_default_value
(value)[source]¶ Format the value as a string.
- Parameters
value (
Any
)
New in version 0.3.1.
-
get_arguments
(obj)[source]¶ Returns a dictionary mapping argument names to parameters/arguments for a function.
-
no_default_regex
¶ Type:
Pattern
Regular expression to match flags in docstrings to suppress default values.
Pattern
:regex:`^:(No|no)[-_](default|Default) `
Flags