Skip to content

Commit f69eca8

Browse files
committed
Update trim_zeros annotation in stub file
1 parent 4deb1d2 commit f69eca8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

numpy/lib/_function_base_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ def trim_zeros(filt, trim='fb', axis=-1):
19111911
----------
19121912
filt : array_like
19131913
Input array.
1914-
trim : str, optional
1914+
trim : {"fb", "f", "b"}, optional
19151915
A string with 'f' representing trim from front and 'b' to trim from
19161916
back. By default, zeros are trimmed from the front and back.
19171917
axis : int or sequence, optional

numpy/lib/_function_base_impl.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ def sort_complex(a: ArrayLike) -> NDArray[complexfloating[Any, Any]]: ...
316316
def trim_zeros(
317317
filt: _TrimZerosSequence[_T],
318318
trim: L["f", "b", "fb", "bf"] = ...,
319+
axis: SupportsIndex = ...,
319320
) -> _T: ...
320321

321322
@overload

0 commit comments

Comments
 (0)