hyb
2026-01-30 44480e71b27aa9d4cb8441f50c873f1b110e9691
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import numpy as np
import numpy.typing as npt
 
a: npt.NDArray[np.float64]
generator = (i for i in range(10))
 
np.require(a, requirements=1)  # type: ignore[call-overload]
np.require(a, requirements="TEST")  # type: ignore[arg-type]
 
np.zeros("test")  # type: ignore[arg-type]
np.zeros()  # type: ignore[call-overload]
 
np.ones("test")  # type: ignore[arg-type]
np.ones()  # type: ignore[call-overload]
 
np.array(0, float, True)  # type: ignore[call-overload]
 
np.linspace(None, 'bob')  # type: ignore[call-overload]
np.linspace(0, 2, num=10.0)  # type: ignore[call-overload]
np.linspace(0, 2, endpoint='True')  # type: ignore[call-overload]
np.linspace(0, 2, retstep=b'False')  # type: ignore[call-overload]
np.linspace(0, 2, dtype=0)  # type: ignore[call-overload]
np.linspace(0, 2, axis=None)  # type: ignore[call-overload]
 
np.logspace(None, 'bob')  # type: ignore[call-overload]
np.logspace(0, 2, base=None)  # type: ignore[call-overload]
 
np.geomspace(None, 'bob')  # type: ignore[call-overload]
 
np.stack(generator)  # type: ignore[call-overload]
np.hstack({1, 2})  # type: ignore[call-overload]
np.vstack(1)  # type: ignore[call-overload]
 
np.array([1], like=1)  # type: ignore[call-overload]