Skip to content

Commit 9139dc4

Browse files
committed
🏷️ fix stubtest error for clip, indices, and squeeze in numpy.ma
1 parent dbf7f15 commit 9139dc4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/numpy-stubs/ma/core.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from typing_extensions import Never, Self, TypeVar, deprecated, overload
44

55
import numpy as np
66
from _numtype import Array, ToGeneric_0d, ToGeneric_1nd, ToGeneric_nd
7-
from numpy import _OrderACF, _OrderKACF, amax, amin, bool_, clip, expand_dims, indices, squeeze # noqa: ICN003
7+
from numpy import _OrderACF, _OrderKACF, amax, amin, bool_, expand_dims # noqa: ICN003
88
from numpy._typing import _BoolCodes
99

1010
__all__ = [
@@ -934,13 +934,16 @@ fmod: _DomainedBinaryOperation
934934
mod: _DomainedBinaryOperation
935935

936936
arange: _convert2ma
937+
clip: _convert2ma
937938
empty: _convert2ma
938939
empty_like: _convert2ma
939940
frombuffer: _convert2ma
940941
fromfunction: _convert2ma
941942
identity: _convert2ma
943+
indices: _convert2ma
942944
ones: _convert2ma
943945
ones_like: _convert2ma
946+
squeeze: _convert2ma
944947
zeros: _convert2ma
945948
zeros_like: _convert2ma
946949

tool/.mypyignore-todo.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ numpy.f2py.symbolic
2222
numpy.f2py.((cb|common|f90mod|use)_)?rules
2323

2424
numpy.ma.testutils
25-
numpy.ma(.core)?.clip
26-
numpy.ma(.core)?.indices
27-
numpy.ma(.core)?.squeeze
2825
numpy.ma.core.mask_rowcols
2926
numpy.ma.extras.MAxisConcatenator.concatenate
3027
numpy.ma.mrecords.fromtextfile

0 commit comments

Comments
 (0)