API checks¤
find_breaking_changes ¤
Find breaking changes between two versions of the same API.
The function will iterate recursively on all objects and yield breaking changes with detailed information.
Parameters:
-
(old_obj¤Object | Alias) –The old version of an object.
-
(new_obj¤Object | Alias) –The new version of an object.
Yields:
-
Breakage–Breaking changes.
Examples:
>>> import sys, griffe
>>> new = griffe.load("pkg")
>>> old = griffe.load_git("pkg", "1.2.3")
>>> for breakage in griffe.find_breaking_changes(old, new)
... print(breakage.explain(style=style), file=sys.stderr)
- Changelog 0.46.0 - 2024-06-16 Deprecations
- Guide User guide Manipulating APIs Checking APIs Python API
- Reference
griffe API checks
ExplanationStyle ¤
flowchart TD
griffe.ExplanationStyle[ExplanationStyle]
click griffe.ExplanationStyle href "" "griffe.ExplanationStyle"
Enumeration of the possible styles for explanations.
- Reference Python API
- API checks
-
AttributeChangedTypeBreakageexplain -
AttributeChangedValueBreakageexplain -
Breakageexplain -
ClassRemovedBaseBreakageexplain -
ObjectChangedKindBreakageexplain -
ObjectRemovedBreakageexplain -
ParameterAddedRequiredBreakageexplain -
ParameterChangedDefaultBreakageexplain -
ParameterChangedKindBreakageexplain -
ParameterChangedRequiredBreakageexplain -
ParameterMovedBreakageexplain -
ParameterRemovedBreakageexplain -
ReturnChangedTypeBreakageexplain
-
- CLI entrypoints
check
- API checks
Attributes:
-
GITHUB–Explanation as GitHub workflow commands warnings, adapted to CI.
-
MARKDOWN–Explanations in Markdown, adapted to changelogs.
-
ONE_LINE–Explanations on one-line.
-
VERBOSE–Explanations on multiple lines.
GITHUB class-attribute instance-attribute ¤
GITHUB = 'github'
Explanation as GitHub workflow commands warnings, adapted to CI.
MARKDOWN class-attribute instance-attribute ¤
MARKDOWN = 'markdown'
Explanations in Markdown, adapted to changelogs.
ONE_LINE class-attribute instance-attribute ¤
ONE_LINE = 'oneline'
Explanations on one-line.
- Reference Python API API checks
-
AttributeChangedTypeBreakageexplain -
AttributeChangedValueBreakageexplain -
Breakageexplain -
ClassRemovedBaseBreakageexplain -
ObjectChangedKindBreakageexplain -
ObjectRemovedBreakageexplain -
ParameterAddedRequiredBreakageexplain -
ParameterChangedDefaultBreakageexplain -
ParameterChangedKindBreakageexplain -
ParameterChangedRequiredBreakageexplain -
ParameterMovedBreakageexplain -
ParameterRemovedBreakageexplain -
ReturnChangedTypeBreakageexplain
-
Breakage ¤
Breakages can explain what broke from a version to another.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
- Guide User guide Manipulating APIs Checking APIs Python API
- Reference
griffe API checks
- Reference Python API API checks
-
AttributeChangedTypeBreakage -
AttributeChangedValueBreakage -
ClassRemovedBaseBreakage -
ObjectChangedKindBreakage -
ObjectRemovedBreakage -
ParameterAddedRequiredBreakage -
ParameterChangedDefaultBreakage -
ParameterChangedKindBreakage -
ParameterChangedRequiredBreakage -
ParameterMovedBreakage -
ParameterRemovedBreakage -
ReturnChangedTypeBreakage
-
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
BreakageKind ¤
flowchart TD
griffe.BreakageKind[BreakageKind]
click griffe.BreakageKind href "" "griffe.BreakageKind"
Enumeration of the possible API breakages.
- Reference Python API API checks
-
AttributeChangedTypeBreakagekind -
AttributeChangedValueBreakagekind -
Breakagekind -
ClassRemovedBaseBreakagekind -
ObjectChangedKindBreakagekind -
ObjectRemovedBreakagekind -
ParameterAddedRequiredBreakagekind -
ParameterChangedDefaultBreakagekind -
ParameterChangedKindBreakagekind -
ParameterChangedRequiredBreakagekind -
ParameterMovedBreakagekind -
ParameterRemovedBreakagekind -
ReturnChangedTypeBreakagekind
-
Attributes:
-
ATTRIBUTE_CHANGED_TYPE–Attribute types are incompatible
-
ATTRIBUTE_CHANGED_VALUE–Attribute value was changed
-
CLASS_REMOVED_BASE–Base class was removed
-
OBJECT_CHANGED_KIND–Public object points to a different kind of object
-
OBJECT_REMOVED–Public object was removed
-
PARAMETER_ADDED_REQUIRED–Parameter was added as required
-
PARAMETER_CHANGED_DEFAULT–Parameter default was changed
-
PARAMETER_CHANGED_KIND–Parameter kind was changed
-
PARAMETER_CHANGED_REQUIRED–Parameter is now required
-
PARAMETER_MOVED–Positional parameter was moved
-
PARAMETER_REMOVED–Parameter was removed
-
RETURN_CHANGED_TYPE–Return types are incompatible
ATTRIBUTE_CHANGED_TYPE class-attribute instance-attribute ¤
ATTRIBUTE_CHANGED_TYPE = 'Attribute types are incompatible'
Attribute types are incompatible
ATTRIBUTE_CHANGED_VALUE class-attribute instance-attribute ¤
ATTRIBUTE_CHANGED_VALUE = 'Attribute value was changed'
Attribute value was changed
CLASS_REMOVED_BASE class-attribute instance-attribute ¤
CLASS_REMOVED_BASE = 'Base class was removed'
Base class was removed
OBJECT_CHANGED_KIND class-attribute instance-attribute ¤
OBJECT_CHANGED_KIND = (
"Public object points to a different kind of object"
)
Public object points to a different kind of object
OBJECT_REMOVED class-attribute instance-attribute ¤
OBJECT_REMOVED = 'Public object was removed'
Public object was removed
PARAMETER_ADDED_REQUIRED class-attribute instance-attribute ¤
PARAMETER_ADDED_REQUIRED = "Parameter was added as required"
Parameter was added as required
PARAMETER_CHANGED_DEFAULT class-attribute instance-attribute ¤
PARAMETER_CHANGED_DEFAULT = 'Parameter default was changed'
Parameter default was changed
PARAMETER_CHANGED_KIND class-attribute instance-attribute ¤
PARAMETER_CHANGED_KIND = 'Parameter kind was changed'
Parameter kind was changed
PARAMETER_CHANGED_REQUIRED class-attribute instance-attribute ¤
PARAMETER_CHANGED_REQUIRED = 'Parameter is now required'
Parameter is now required
PARAMETER_MOVED class-attribute instance-attribute ¤
PARAMETER_MOVED = 'Positional parameter was moved'
Positional parameter was moved
PARAMETER_REMOVED class-attribute instance-attribute ¤
PARAMETER_REMOVED = 'Parameter was removed'
Parameter was removed
RETURN_CHANGED_TYPE class-attribute instance-attribute ¤
RETURN_CHANGED_TYPE = 'Return types are incompatible'
Return types are incompatible
AttributeChangedTypeBreakage ¤
Bases: Breakage
flowchart TD
griffe.AttributeChangedTypeBreakage[AttributeChangedTypeBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.AttributeChangedTypeBreakage
click griffe.AttributeChangedTypeBreakage href "" "griffe.AttributeChangedTypeBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for attributes whose type changed.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = ATTRIBUTE_CHANGED_TYPE
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
AttributeChangedValueBreakage ¤
Bases: Breakage
flowchart TD
griffe.AttributeChangedValueBreakage[AttributeChangedValueBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.AttributeChangedValueBreakage
click griffe.AttributeChangedValueBreakage href "" "griffe.AttributeChangedValueBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for attributes whose value changed.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = ATTRIBUTE_CHANGED_VALUE
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ClassRemovedBaseBreakage ¤
Bases: Breakage
flowchart TD
griffe.ClassRemovedBaseBreakage[ClassRemovedBaseBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ClassRemovedBaseBreakage
click griffe.ClassRemovedBaseBreakage href "" "griffe.ClassRemovedBaseBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for removed base classes.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = CLASS_REMOVED_BASE
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ObjectChangedKindBreakage ¤
Bases: Breakage
flowchart TD
griffe.ObjectChangedKindBreakage[ObjectChangedKindBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ObjectChangedKindBreakage
click griffe.ObjectChangedKindBreakage href "" "griffe.ObjectChangedKindBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for objects whose kind changed.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = OBJECT_CHANGED_KIND
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ObjectRemovedBreakage ¤
Bases: Breakage
flowchart TD
griffe.ObjectRemovedBreakage[ObjectRemovedBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ObjectRemovedBreakage
click griffe.ObjectRemovedBreakage href "" "griffe.ObjectRemovedBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for removed objects.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ParameterAddedRequiredBreakage ¤
Bases: Breakage
flowchart TD
griffe.ParameterAddedRequiredBreakage[ParameterAddedRequiredBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ParameterAddedRequiredBreakage
click griffe.ParameterAddedRequiredBreakage href "" "griffe.ParameterAddedRequiredBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for new parameters added as required.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = PARAMETER_ADDED_REQUIRED
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ParameterChangedDefaultBreakage ¤
Bases: Breakage
flowchart TD
griffe.ParameterChangedDefaultBreakage[ParameterChangedDefaultBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ParameterChangedDefaultBreakage
click griffe.ParameterChangedDefaultBreakage href "" "griffe.ParameterChangedDefaultBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for parameters whose default value changed.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ParameterChangedKindBreakage ¤
Bases: Breakage
flowchart TD
griffe.ParameterChangedKindBreakage[ParameterChangedKindBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ParameterChangedKindBreakage
click griffe.ParameterChangedKindBreakage href "" "griffe.ParameterChangedKindBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for parameters whose kind changed.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = PARAMETER_CHANGED_KIND
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ParameterChangedRequiredBreakage ¤
Bases: Breakage
flowchart TD
griffe.ParameterChangedRequiredBreakage[ParameterChangedRequiredBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ParameterChangedRequiredBreakage
click griffe.ParameterChangedRequiredBreakage href "" "griffe.ParameterChangedRequiredBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for parameters which became required.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ParameterMovedBreakage ¤
Bases: Breakage
flowchart TD
griffe.ParameterMovedBreakage[ParameterMovedBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ParameterMovedBreakage
click griffe.ParameterMovedBreakage href "" "griffe.ParameterMovedBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for moved parameters.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = PARAMETER_MOVED
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ParameterRemovedBreakage ¤
Bases: Breakage
flowchart TD
griffe.ParameterRemovedBreakage[ParameterRemovedBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ParameterRemovedBreakage
click griffe.ParameterRemovedBreakage href "" "griffe.ParameterRemovedBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for removed parameters.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = PARAMETER_REMOVED
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.
ReturnChangedTypeBreakage ¤
Bases: Breakage
flowchart TD
griffe.ReturnChangedTypeBreakage[ReturnChangedTypeBreakage]
griffe._internal.diff.Breakage[Breakage]
griffe._internal.diff.Breakage --> griffe.ReturnChangedTypeBreakage
click griffe.ReturnChangedTypeBreakage href "" "griffe.ReturnChangedTypeBreakage"
click griffe._internal.diff.Breakage href "" "griffe._internal.diff.Breakage"
Specific breakage class for return values which changed type.
Parameters:
-
(obj¤Object) –The object related to the breakage.
-
(old_value¤Any) –The old value.
-
(new_value¤Any) –The new, incompatible value.
-
(details¤str, default:'') –Some details about the breakage.
Methods:
-
as_dict–Return this object's data as a dictionary.
-
explain–Explain the breakage by showing old and new value.
Attributes:
-
details–Some details about the breakage.
-
kind(BreakageKind) –The kind of breakage.
-
new_value–The new, incompatible value.
-
obj–The object related to the breakage.
-
old_value–The old value.
kind class-attribute instance-attribute ¤
kind: BreakageKind = RETURN_CHANGED_TYPE
The kind of breakage.
as_dict ¤
explain ¤
explain(style: ExplanationStyle = ONE_LINE) -> str
Explain the breakage by showing old and new value.
Parameters:
-
(style¤ExplanationStyle, default:ONE_LINE) –The explanation style to use.
Returns:
-
str–An explanation.