File tree 2 files changed +11
-0
lines changed
doc/api/next_api_changes/deprecations
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ Deprecated ``register `` on ``matplotlib.patches._Styles `` and subclasses
2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+ This class method is never used internally. Due to the internal check in the
5
+ method it only accepts subclasses of a private baseclass embedded in the host
6
+ class which makes it unlikely that it has been used externally.
Original file line number Diff line number Diff line change @@ -2347,6 +2347,11 @@ def pprint_styles(cls):
2347
2347
return textwrap .indent (rst_table , prefix = ' ' * 4 )
2348
2348
2349
2349
@classmethod
2350
+ @_api .deprecated (
2351
+ '3.10.0' ,
2352
+ message = "This method is never used internally." ,
2353
+ alternative = "No replacement. Please open an issue if you use this."
2354
+ )
2350
2355
def register (cls , name , style ):
2351
2356
"""Register a new style."""
2352
2357
if not issubclass (style , cls ._Base ):
You can’t perform that action at this time.
0 commit comments