Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
array_constructors.pyi35 linesDownload Raw Back to fail
1import numpy as np
2import numpy.typing as npt
3
4a: npt.NDArray[np.float64]
5generator = (i for i in range(10))
6
7np.require(a, requirements=1)  # type: ignore[call-overload]
8np.require(a, requirements="TEST")  # type: ignore[arg-type]
9
10np.zeros("test")  # type: ignore[arg-type]
11np.zeros()  # type: ignore[call-overload]
12
13np.ones("test")  # type: ignore[arg-type]
14np.ones()  # type: ignore[call-overload]
15
16np.array(0, float, True)  # type: ignore[call-overload]
17
18np.linspace(None, "bob")  # type: ignore[call-overload]
19np.linspace(0, 2, num=10.0)  # type: ignore[call-overload]
20np.linspace(0, 2, endpoint="True")  # type: ignore[call-overload]
21np.linspace(0, 2, retstep=b"False")  # type: ignore[call-overload]
22np.linspace(0, 2, dtype=0)  # type: ignore[call-overload]
23np.linspace(0, 2, axis=None)  # type: ignore[call-overload]
24
25np.logspace(None, "bob")  # type: ignore[call-overload]
26np.logspace(0, 2, base=None)  # type: ignore[call-overload]
27
28np.geomspace(None, "bob")  # type: ignore[call-overload]
29
30np.stack(generator)  # type: ignore[call-overload]
31np.hstack({1, 2})  # type: ignore[call-overload]
32np.vstack(1)  # type: ignore[call-overload]
33
34np.array([1], like=1)  # type: ignore[call-overload]
35 
codekingpro/portable-devtools · Team Ai