Skip to content

Commit 09ab2c2

Browse files
authored
Merge pull request #19150 from timhoffm/change-classproperty-usage
MNT: Move from @cbook._classproperty to @_api.classproperty
2 parents f23860d + 22d308c commit 09ab2c2

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/matplotlib/backend_bases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ class FigureCanvasBase:
17001700

17011701
filetypes = _default_filetypes
17021702

1703-
@cbook._classproperty
1703+
@_api.classproperty
17041704
def supports_blit(cls):
17051705
"""If this Canvas sub-class supports blitting."""
17061706
return (hasattr(cls, "copy_from_bbox")

lib/matplotlib/backends/backend_pgf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ class GraphicsContextPgf(GraphicsContextBase):
752752
class TmpDirCleaner:
753753
_remaining_tmpdirs = set()
754754

755-
@cbook._classproperty
755+
@_api.classproperty
756756
@_api.deprecated("3.4")
757757
def remaining_tmpdirs(cls):
758758
return cls._remaining_tmpdirs

lib/matplotlib/cbook/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
import matplotlib
3131
from matplotlib import _api, _c_internal_utils
32-
from matplotlib._api import classproperty as _classproperty
3332
from matplotlib._api.deprecation import (
3433
deprecated, warn_deprecated, MatplotlibDeprecationWarning, mplDeprecation)
3534

0 commit comments

Comments
 (0)