Skip to content

Commit 39bb6af

Browse files
committed
🏷️ fix stubtest errors in numpy.ma._convert2ma
1 parent c0c5bf7 commit 39bb6af

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/numpy-stubs/ma/core.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,9 @@ class _frommethod:
703703
def getdoc(self) -> Incomplete: ...
704704

705705
class _convert2ma:
706-
__doc__: str
707-
def __init__(self, funcname: Incomplete, params: Incomplete = ...) -> None: ...
708-
def __call__(self, *args: Incomplete, **params: Incomplete) -> Incomplete: ...
709-
def getdoc(self) -> Incomplete: ...
706+
def __init__(self, /, funcname: str, np_ret: str, np_ma_ret: str, params: dict[str, Any] | None = None) -> None: ...
707+
def __call__(self, /, *args: object, **params: object) -> Any: ...
708+
def getdoc(self, /, np_ret: str, np_ma_ret: str) -> str | None: ...
710709

711710
#
712711
def array(

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._convert2ma.__doc__
26-
numpy.ma.core._convert2ma.__init__
27-
numpy.ma.core._convert2ma.getdoc
2825
numpy.ma.core._MaskedUFunc.__doc__
2926
numpy.ma.core.MaskedConstant.__iop__
3027
numpy.ma(.core)?.(MaskedArray|masked_array).T

0 commit comments

Comments
 (0)