deprecated(since, *, message='', name='', alternative='', pending=False, obj_type=None, addendum='', removal='')
When deprecating a classmethod, a staticmethod, or a property, the @deprecated
decorator should go under @classmethod
and @staticmethod
(i.e., deprecated
should directly decorate the underlying callable), but over @property
.
When deprecating a class C
intended to be used as a base class in a multiple inheritance hierarchy, C
must define an __init__
method (if C
instead inherited its __init__
from its own base class, then @deprecated
would mess up __init__
inheritance when installing its own (deprecation-emitting) C.__init__
).
Parameters are the same as for warn_deprecated
, except that obj_type defaults to 'class' if decorating a class, 'attribute' if decorating a property, and 'function' otherwise.
Decorator to mark a function, a class, or a property as deprecated.
See :@deprecated('1.4.0') def the_function_to_deprecate(): pass
The following pages refer to to this document either explicitly or contain code examples using this.
matplotlib._api.deprecation.deprecated
matplotlib._api.deprecation.deprecate_privatize_attribute
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them