Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 09ab2c2

Browse filesBrowse 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
Copy full SHA for 09ab2c2

File tree

3 files changed

+2
-3
lines changed
Filter options

3 files changed

+2
-3
lines changed

‎lib/matplotlib/backend_bases.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pgf.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: lib/matplotlib/cbook/__init__.py
-1Lines changed: 0 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.