@@ -76,7 +76,7 @@ class RendererBase:
7676 facecolors : Sequence [ColorType ],
7777 antialiased : bool ,
7878 edgecolors : Sequence [ColorType ] | ColorType | None ,
79- ): ...
79+ ) -> None : ...
8080 def draw_gouraud_triangle (
8181 self ,
8282 gc : GraphicsContextBase ,
@@ -321,7 +321,7 @@ class FigureCanvasBase:
321321 @property
322322 def scroll_pick_id (self ) -> int : ...
323323 @classmethod
324- def new_manager (cls , figure : Figure , num : int | str ): ...
324+ def new_manager (cls , figure : Figure , num : int | str ) -> FigureManagerBase : ...
325325 def is_saving (self ) -> bool : ...
326326 def blit (self , bbox : BboxBase | None = ...) -> None : ...
327327 def inaxes (self , xy : tuple [float , float ]) -> Axes | None : ...
@@ -351,7 +351,7 @@ class FigureCanvasBase:
351351 bbox_extra_artists : list [Artist ] | None = ...,
352352 backend : str | None = ...,
353353 ** kwargs
354- ): ...
354+ ) -> Any : ...
355355 @classmethod
356356 def get_default_filetype (cls ) -> str : ...
357357 def get_default_filename (self ) -> str : ...
@@ -363,7 +363,7 @@ class FigureCanvasBase:
363363 self ,
364364 interval : int | None = ...,
365365 callbacks : list [tuple [Callable , tuple , dict [str , Any ]]] | None = ...,
366- ): ...
366+ ) -> TimerBase : ...
367367 def flush_events (self ) -> None : ...
368368 def start_event_loop (self , timeout : float = ...) -> None : ...
369369 def stop_event_loop (self ) -> None : ...
@@ -372,7 +372,7 @@ def key_press_handler(
372372 event : KeyEvent ,
373373 canvas : FigureCanvasBase | None = ...,
374374 toolbar : NavigationToolbar2 | None = ...,
375- ): ...
375+ ) -> None : ...
376376def button_press_handler (
377377 event : MouseEvent ,
378378 canvas : FigureCanvasBase | None = ...,
@@ -392,7 +392,7 @@ class FigureManagerBase:
392392 @classmethod
393393 def create_with_canvas (
394394 cls , canvas_class : type [FigureCanvasBase ], figure : Figure , num : int | str
395- ): ...
395+ ) -> FigureManagerBase : ...
396396 @classmethod
397397 def start_main_loop (cls ) -> None : ...
398398 @classmethod
@@ -476,9 +476,9 @@ class _Backend:
476476 FigureManager : type [FigureManagerBase ]
477477 mainloop : None | Callable [[], Any ]
478478 @classmethod
479- def new_figure_manager (cls , num : int | str , * args , ** kwargs ): ...
479+ def new_figure_manager (cls , num : int | str , * args , ** kwargs ) -> FigureManagerBase : ...
480480 @classmethod
481- def new_figure_manager_given_figure (cls , num : int | str , figure : Figure ): ...
481+ def new_figure_manager_given_figure (cls , num : int | str , figure : Figure ) -> FigureManagerBase : ...
482482 @classmethod
483483 def draw_if_interactive (cls ) -> None : ...
484484 @classmethod
@@ -487,4 +487,4 @@ class _Backend:
487487 def export (cls ) -> type [_Backend ]: ...
488488
489489class ShowBase (_Backend ):
490- def __call__ (self , block : bool | None = ...): ...
490+ def __call__ (self , block : bool | None = ...) -> None : ...
0 commit comments