Skip to content

Commit eb6e299

Browse files
authored
Merge pull request numpy#26760 from rgommers/typ-fix-axisconcatenator
TYP: fix incorrect import in `ma/extras.pyi` stub
2 parents 64ee06a + dd450d9 commit eb6e299

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

numpy/ma/extras.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from typing import Any
2-
from numpy.lib.index_tricks import AxisConcatenator
2+
3+
from numpy.lib._index_tricks_impl import AxisConcatenator
34

45
from numpy.ma.core import (
56
dot as dot,

numpy/typing/tests/data/pass/ma.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from typing import Any
2+
3+
import numpy as np
4+
import numpy.ma
5+
6+
7+
m : np.ma.MaskedArray[Any, np.dtype[np.float64]] = np.ma.masked_array([1.5, 2, 3], mask=[True, False, True])
8+

0 commit comments

Comments
 (0)