Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
index_tricks.pyi15 linesDownload Raw Back to fail
1import numpy as np
2
3AR_LIKE_i: list[int]
4AR_LIKE_f: list[float]
5
6np.ndindex([1, 2, 3])  # type: ignore[call-overload]
7np.unravel_index(AR_LIKE_f, (1, 2, 3))  # type: ignore[arg-type]
8np.ravel_multi_index(AR_LIKE_i, (1, 2, 3), mode="bob")  # type: ignore[call-overload]
9np.mgrid[1]  # type: ignore[index]
10np.mgrid[...]  # type: ignore[index]
11np.ogrid[1]  # type: ignore[index]
12np.ogrid[...]  # type: ignore[index]
13np.fill_diagonal(AR_LIKE_f, 2)  # type: ignore[arg-type]
14np.diag_indices(1.0)  # type: ignore[arg-type]
15 
codekingpro/portable-devtools · Team Ai