File tree 2 files changed +5
-3
lines changed
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
6
6
class Gcf :
7
7
figs : OrderedDict [int , FigureManagerBase ]
8
8
@classmethod
9
- def get_fig_manager (cls , num : int ) -> FigureManagerBase : ...
9
+ def get_fig_manager (cls , num : int ) -> FigureManagerBase | None : ...
10
10
@classmethod
11
11
def destroy (cls , num : int | FigureManagerBase ) -> None : ...
12
12
@classmethod
@@ -20,7 +20,9 @@ class Gcf:
20
20
@classmethod
21
21
def get_num_fig_managers (cls ) -> int : ...
22
22
@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 : ...
24
26
@classmethod
25
27
def set_active (cls , manager : FigureManagerBase ) -> None : ...
26
28
@classmethod
Original file line number Diff line number Diff line change @@ -938,7 +938,7 @@ def figure(
938
938
939
939
for hookspecs in rcParams ["figure.hooks" ]:
940
940
module_name , dotted_name = hookspecs .split (":" )
941
- obj = importlib .import_module (module_name )
941
+ obj : Any = importlib .import_module (module_name )
942
942
for part in dotted_name .split ("." ):
943
943
obj = getattr (obj , part )
944
944
obj (fig )
You can’t perform that action at this time.
0 commit comments