Skip to content

Commit b599264

Browse files
authored
Merge pull request numpy#27323 from luxedo/TYP/27318
TYP: add `ma.zeros_like` and `ma.ones_like` typing
2 parents bb443be + 63c6a23 commit b599264

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

numpy/ma/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ from numpy.ma.core import (
140140
nonzero as nonzero,
141141
not_equal as not_equal,
142142
ones as ones,
143+
ones_like as ones_like,
143144
outer as outer,
144145
outerproduct as outerproduct,
145146
power as power,
@@ -178,6 +179,7 @@ from numpy.ma.core import (
178179
var as var,
179180
where as where,
180181
zeros as zeros,
182+
zeros_like as zeros_like,
181183
)
182184

183185
from numpy.ma.extras import (

numpy/ma/core.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,9 @@ frombuffer: _convert2ma
460460
fromfunction: _convert2ma
461461
identity: _convert2ma
462462
ones: _convert2ma
463+
ones_like: _convert2ma
463464
zeros: _convert2ma
465+
zeros_like: _convert2ma
464466

465467
def append(a, b, axis=...): ...
466468
def dot(a, b, strict=..., out=...): ...

0 commit comments

Comments
 (0)