@@ -92,34 +92,6 @@ class FigureBase(Artist):
92
92
@overload
93
93
def add_subplot (self , ** kwargs ) -> Axes : ...
94
94
@overload
95
- def subplots (
96
- self ,
97
- nrows : Literal [1 ] = ...,
98
- ncols : Literal [1 ] = ...,
99
- * ,
100
- sharex : bool | Literal ["none" , "all" , "row" , "col" ] = ...,
101
- sharey : bool | Literal ["none" , "all" , "row" , "col" ] = ...,
102
- squeeze : Literal [True ] = ...,
103
- width_ratios : Sequence [float ] | None = ...,
104
- height_ratios : Sequence [float ] | None = ...,
105
- subplot_kw : dict [str , Any ] | None = ...,
106
- gridspec_kw : dict [str , Any ] | None = ...,
107
- ) -> Axes : ...
108
- @overload
109
- def subplots (
110
- self ,
111
- nrows : int = ...,
112
- ncols : int = ...,
113
- * ,
114
- sharex : bool | Literal ["none" , "all" , "row" , "col" ] = ...,
115
- sharey : bool | Literal ["none" , "all" , "row" , "col" ] = ...,
116
- squeeze : Literal [True ],
117
- width_ratios : Sequence [float ] | None = ...,
118
- height_ratios : Sequence [float ] | None = ...,
119
- subplot_kw : dict [str , Any ] | None = ...,
120
- gridspec_kw : dict [str , Any ] | None = ...,
121
- ) -> np .ndarray : ... # TODO numpy/numpy#24738
122
- @overload
123
95
def subplots (
124
96
self ,
125
97
nrows : int = ...,
@@ -146,7 +118,7 @@ class FigureBase(Artist):
146
118
height_ratios : Sequence [float ] | None = ...,
147
119
subplot_kw : dict [str , Any ] | None = ...,
148
120
gridspec_kw : dict [str , Any ] | None = ...,
149
- ) -> Axes | np . ndarray : ...
121
+ ) -> Any : ...
150
122
def delaxes (self , ax : Axes ) -> None : ...
151
123
def clear (self , keep_observers : bool = ...) -> None : ...
152
124
def clf (self , keep_observers : bool = ...) -> None : ...
0 commit comments