8000 TYP: fix stubtest errors in ``numpy.mat[rix]lib`` (#28537) · numpy/numpy@ecf97ae · GitHub
[go: up one dir, main page]

Skip to content

Commit ecf97ae

Browse files
jorenhamcharris
authored andcommitted
TYP: fix stubtest errors in numpy.mat[rix]lib (#28537)
Ported from numpy/numtype#247
1 parent 5bdbd6d commit ecf97ae

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

numpy/matlib.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ from numpy import (
7070
bitwise_invert,
7171
bitwise_left_shift,
7272
bitwise_not,
73+
bitwise_or,
7374
bitwise_right_shift,
7475
bitwise_xor,
7576
blackman,
@@ -89,6 +90,7 @@ from numpy import (
8990
c_,
9091
can_cast,
9192
cbrt,
93+
cdouble,
9294
ceil,
9395
char,
9496
character,
@@ -160,6 +162,7 @@ from numpy import (
160162
expand_dims,
161163
expm1,
162164
extract,
165+
f2py,
163166
fabs,
164167
fft,
165168
fill_diagonal,
@@ -209,6 +212,7 @@ from numpy import (
209212
greater_equal,
210213
half,
211214
hamming,
215+
hanning,
212216
heaviside,
213217
histogram,
214218
histogram2d,
@@ -220,6 +224,7 @@ from numpy import (
220224
i0,
221225
iinfo,
222226
imag,
227+
in1d,
223228
index_exp,
224229
indices,
225230
inexact,
@@ -425,9 +430,11 @@ from numpy import (
425430
sort,
426431
sort_complex,
427432
spacing,
433+
split,
428434
sqrt,
429435
square,
430436
squeeze,
437+
stack,
431438
std,
432439
str_,
433440
strings,
@@ -459,6 +466,7 @@ from numpy import (
459466
trunc,
460467
typecodes,
461468
typename,
469+
typing,
462470
ubyte,
463471
ufunc,
464472
uint,

numpy/matrixlib/defmatrix.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
from collections.abc import Sequence, Mapping
1+
from collections.abc import Mapping, Sequence
22
from typing import Any
33

44
from numpy import matrix
55
from numpy._typing import ArrayLike, DTypeLike, NDArray
66

7-
__all__ = ["matrix", "bmat", "asmatrix"]
7+
__all__ = ["asmatrix", "bmat", "matrix"]
88

99
def bmat(
1010
obj: str | Sequence[ArrayLike] | NDArray[Any],
1111
ldict: None | Mapping[str, Any] = ...,
1212
gdict: None | Mapping[str, Any] = ...,
1313
) -> matrix[tuple[int, int], Any]: ...
1414

15-
def asmatrix(data: ArrayLike, dtype: DTypeLike = ...) -> matrix[tuple[int, int], Any]: ...
16-
17-
mat = asmatrix
15+
def asmatrix(
16+
data: ArrayLike, dtype: DTypeLike = ...
17+
) -> matrix[tuple[int, int], Any]: ...

0 commit comments

Comments
 (0)
0