enumerations ¤
This module contains all the enumerations of the package.
Classes:
-
BreakageKind
–Enumeration of the possible API breakages.
-
DocstringSectionKind
–Enumeration of the possible docstring section kinds.
-
ExplanationStyle
–Enumeration of the possible styles for explanations.
-
Kind
–Enumeration of the different object kinds.
-
ObjectKind
–Enumeration of the different runtime object kinds.
-
ParameterKind
–Enumeration of the different parameter kinds.
-
Parser
–Enumeration of the different docstring parsers.
-
When
–Enumeration of the different times at which an extension is used.
BreakageKind ¤
flowchart TD
griffe.enumerations.BreakageKind[BreakageKind]
click griffe.enumerations.BreakageKind href "" "griffe.enumerations.BreakageKind"
Enumeration of the possible API breakages.
DocstringSectionKind ¤
flowchart TD
griffe.enumerations.DocstringSectionKind[DocstringSectionKind]
click griffe.enumerations.DocstringSectionKind href "" "griffe.enumerations.DocstringSectionKind"
Enumeration of the possible docstring section kinds.
Attributes:
-
admonition
–Admonition block.
-
attributes
–Attributes section.
-
classes
–Classes section.
-
deprecated
–Deprecation section.
-
examples
–Examples section.
-
functions
–Functions section.
-
modules
–Modules section.
-
other_parameters
–Other parameters (keyword arguments) section.
-
parameters
–Parameters section.
-
raises
–Raises (exceptions) section.
-
receives
–Received value(s) (generators) section.
-
returns
–Returned value(s) section.
-
text
–Text section.
-
warns
–Warnings section.
-
yields
–Yielded value(s) (generators) section.
other_parameters class-attribute
instance-attribute
¤
other_parameters = 'other parameters'
Other parameters (keyword arguments) section.
receives class-attribute
instance-attribute
¤
receives = 'receives'
Received value(s) (generators) section.
yields class-attribute
instance-attribute
¤
yields = 'yields'
Yielded value(s) (generators) section.
ExplanationStyle ¤
flowchart TD
griffe.enumerations.ExplanationStyle[ExplanationStyle]
click griffe.enumerations.ExplanationStyle href "" "griffe.enumerations.ExplanationStyle"
Enumeration of the possible styles for explanations.
Attributes:
Kind ¤
flowchart TD
griffe.enumerations.Kind[Kind]
click griffe.enumerations.Kind href "" "griffe.enumerations.Kind"
Enumeration of the different object kinds.
Attributes:
ObjectKind ¤
flowchart TD
griffe.enumerations.ObjectKind[ObjectKind]
click griffe.enumerations.ObjectKind href "" "griffe.enumerations.ObjectKind"
Enumeration of the different runtime object kinds.
Attributes:
-
ATTRIBUTE
(str
) –Attributes.
-
BUILTIN_FUNCTION
(str
) –Built-in functions.
-
BUILTIN_METHOD
(str
) –Built-in ethods.
-
CACHED_PROPERTY
(str
) –Cached properties.
-
CLASS
(str
) –Classes.
-
CLASSMETHOD
(str
) –Class methods.
-
COROUTINE
(str
) –Coroutines
-
FUNCTION
(str
) –Functions.
-
METHOD
(str
) –Methods.
-
METHOD_DESCRIPTOR
(str
) –Method descriptors.
-
MODULE
(str
) –Modules.
-
PROPERTY
(str
) –Properties.
-
STATICMETHOD
(str
) –Static methods.
BUILTIN_FUNCTION class-attribute
instance-attribute
¤
BUILTIN_FUNCTION: str = 'builtin_function'
Built-in functions.
BUILTIN_METHOD class-attribute
instance-attribute
¤
BUILTIN_METHOD: str = 'builtin_method'
Built-in ethods.
CACHED_PROPERTY class-attribute
instance-attribute
¤
CACHED_PROPERTY: str = 'cached_property'
Cached properties.
ParameterKind ¤
flowchart TD
griffe.enumerations.ParameterKind[ParameterKind]
click griffe.enumerations.ParameterKind href "" "griffe.enumerations.ParameterKind"
Enumeration of the different parameter kinds.
Attributes:
-
keyword_only
(str
) –Keyword-only parameter.
-
positional_only
(str
) –Positional-only parameter.
-
positional_or_keyword
(str
) –Positional or keyword parameter.
-
var_keyword
(str
) –Variadic keyword parameter.
-
var_positional
(str
) –Variadic positional parameter.
keyword_only class-attribute
instance-attribute
¤
keyword_only: str = 'keyword-only'
Keyword-only parameter.
positional_only class-attribute
instance-attribute
¤
positional_only: str = 'positional-only'
Positional-only parameter.
positional_or_keyword class-attribute
instance-attribute
¤
positional_or_keyword: str = 'positional or keyword'
Positional or keyword parameter.
Parser ¤
flowchart TD
griffe.enumerations.Parser[Parser]
click griffe.enumerations.Parser href "" "griffe.enumerations.Parser"
Enumeration of the different docstring parsers.
Attributes:
When ¤
flowchart TD
griffe.enumerations.When[When]
click griffe.enumerations.When href "" "griffe.enumerations.When"
Enumeration of the different times at which an extension is used.
Attributes:
-
after_all
(int
) –For each node, after the visit/inspection.
-
after_children
(int
) –For each node, after the children have been visited/inspected, and before finishing the visit/inspection.
-
before_all
(int
) –For each node, before the visit/inspection.
-
before_children
(int
) –For each node, after the visit has started, and before the children visit/inspection.
after_all class-attribute
instance-attribute
¤
after_all: int = 4
For each node, after the visit/inspection.
after_children class-attribute
instance-attribute
¤
after_children: int = 3
For each node, after the children have been visited/inspected, and before finishing the visit/inspection.