File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ from matplotlib.figure import Figure
66class Gcf :
77 figs : OrderedDict [int , FigureManagerBase ]
88 @classmethod
9- def get_fig_manager (cls , num : int ) -> FigureManagerBase : ...
9+ def get_fig_manager (cls , num : int ) -> FigureManagerBase | None : ...
1010 @classmethod
1111 def destroy (cls , num : int | FigureManagerBase ) -> None : ...
1212 @classmethod
@@ -20,7 +20,9 @@ class Gcf:
2020 @classmethod
2121 def get_num_fig_managers (cls ) -> int : ...
2222 @classmethod
23- def get_active (cls ) -> FigureManagerBase : ...
23+ def get_active (cls ) -> FigureManagerBase | None : ...
24+ @classmethod
25+ def _set_new_active_manager (cls , manager : FigureManagerBase ) -> None : ...
2426 @classmethod
2527 def set_active (cls , manager : FigureManagerBase ) -> None : ...
2628 @classmethod
Original file line number Diff line number Diff line change @@ -938,7 +938,7 @@ def figure(
938938
939939 for hookspecs in rcParams ["figure.hooks" ]:
940940 module_name , dotted_name = hookspecs .split (":" )
941- obj = importlib .import_module (module_name )
941+ obj : Any = importlib .import_module (module_name )
942942 for part in dotted_name .split ("." ):
943943 obj = getattr (obj , part )
944944 obj (fig )
You can’t perform that action at this time.
0 commit comments