Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
npyio.pyi25 linesDownload Raw Back to fail
1import pathlib
2from typing import IO
3
4import numpy as np
5import numpy.typing as npt
6
7str_path: str
8bytes_path: bytes
9pathlib_path: pathlib.Path
10str_file: IO[str]
11AR_i8: npt.NDArray[np.int64]
12
13np.load(str_file)  # type: ignore[arg-type]
14
15np.save(bytes_path, AR_i8)  # type: ignore[arg-type]
16np.save(str_path, AR_i8, fix_imports=True)  # type: ignore[call-arg]
17
18np.savez(bytes_path, AR_i8)  # type: ignore[arg-type]
19
20np.savez_compressed(bytes_path, AR_i8)  # type: ignore[arg-type]
21
22np.loadtxt(bytes_path)  # type: ignore[arg-type]
23
24np.fromregex(bytes_path, ".", np.int64)  # type: ignore[call-overload]
25 
codekingpro/portable-devtools · Team Ai