File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
doc/api/next_api_changes/deprecations Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ Drerecated ``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):
23472347 return textwrap .indent (rst_table , prefix = ' ' * 4 )
23482348
23492349 @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+ )
23502355 def register (cls , name , style ):
23512356 """Register a new style."""
23522357 if not issubclass (style , cls ._Base ):
You can’t perform that action at this time.
0 commit comments