@@ -138,7 +138,7 @@ def taylor(
138
138
) -> _Array_f8_1d : ...
139
139
def lanczos (M : _WindowLength , * , sym : op .CanBool = True ) -> _Array_f8_1d : ...
140
140
141
- #
141
+ # Overloads where `return_ratios` is `False`.
142
142
@overload
143
143
def dpss (
144
144
M : _WindowLength ,
@@ -157,23 +157,52 @@ def dpss(
157
157
norm : _Norm | None = None ,
158
158
return_ratios : Literal [False ] = False ,
159
159
) -> _Array_f8_1d : ...
160
+
161
+ # Overloads where `return_ratios` is `True`.
162
+ # `return_ratios` as a positional argument
160
163
@overload
161
164
def dpss (
162
165
M : _WindowLength ,
163
166
NW : AnyReal ,
164
167
Kmax : op .CanIndex ,
168
+ sym : op .CanBool ,
169
+ norm : _Norm | None ,
165
170
return_ratios : Literal [True ],
171
+ ) -> tuple [_Array_f8_2d , _Array_f8_1d ]: ...
172
+
173
+ # `return_ratios` as a keyword argument
174
+ @overload
175
+ def dpss (
176
+ M : _WindowLength ,
177
+ NW : AnyReal ,
178
+ Kmax : op .CanIndex ,
166
179
sym : op .CanBool = True ,
167
180
norm : _Norm | None = None ,
181
+ * ,
182
+ return_ratios : Literal [True ],
168
183
) -> tuple [_Array_f8_2d , _Array_f8_1d ]: ...
184
+
185
+ # `return_ratios` as a positional argument
169
186
@overload
170
187
def dpss (
171
188
M : _WindowLength ,
172
189
NW : AnyReal ,
190
+ Kmax : None ,
191
+ sym : op .CanBool ,
192
+ norm : _Norm | None ,
173
193
return_ratios : Literal [True ],
194
+ ) -> tuple [_Array_f8_1d , np .float64 ]: ...
195
+
196
+ # `return_ratios` as a keyword argument
197
+ @overload
198
+ def dpss (
199
+ M : _WindowLength ,
200
+ NW : AnyReal ,
174
201
Kmax : None = None ,
175
202
sym : op .CanBool = True ,
176
203
norm : _Norm | None = None ,
204
+ * ,
205
+ return_ratios : Literal [True ],
177
206
) -> tuple [_Array_f8_1d , np .float64 ]: ...
178
207
179
208
#
0 commit comments