From bd5dca1ba53bcbf587f9d2d0da9e4595d2262d19 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 27 Sep 2022 06:06:42 -0400 Subject: [PATCH] Don't require FigureCanvas on backend module more Fixes #23911. --- lib/matplotlib/pyplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 1e94d90d1534..e5ae9a0cc11c 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -182,7 +182,8 @@ def findobj(o=None, match=None, include_self=True): def _get_required_interactive_framework(backend_mod): - if not hasattr(backend_mod.FigureCanvas, "required_interactive_framework"): + if not hasattr(getattr(backend_mod, "FigureCanvas", None), + "required_interactive_framework"): _api.warn_deprecated( "3.6", name="Support for FigureCanvases without a " "required_interactive_framework attribute") pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy