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

Skip to content

Commit f14efef

Browse files
authored
Merge pull request #24030 from meeseeksmachine/auto-backport-of-pr-24019-on-v3.6.x
Backport PR #24019 on branch v3.6.x (Don't require FigureCanvas on backend module more)
2 parents 541f274 + 90672ee commit f14efef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)