Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90672ee

Browse files
oscargusmeeseeksmachine
authored andcommitted
Backport PR #24019: Don't require FigureCanvas on backend module more
1 parent cd448d7 commit 90672ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def findobj(o=None, match=None, include_self=True):
182182

183183

184184
def _get_required_interactive_framework(backend_mod):
185-
if not hasattr(backend_mod.FigureCanvas, "required_interactive_framework"):
185+
if not hasattr(getattr(backend_mod, "FigureCanvas", None),
186+
"required_interactive_framework"):
186187
_api.warn_deprecated(
187188
"3.6", name="Support for FigureCanvases without a "
188189
"required_interactive_framework attribute")

0 commit comments

Comments
 (0)