npyio.pyi 780 B

123456789101112131415161718192021222324252627282930
  1. import pathlib
  2. from typing import IO
  3. import numpy.typing as npt
  4. import numpy as np
  5. str_path: str
  6. bytes_path: bytes
  7. pathlib_path: pathlib.Path
  8. str_file: IO[str]
  9. AR_i8: npt.NDArray[np.int64]
  10. np.load(str_file) # E: incompatible type
  11. np.save(bytes_path, AR_i8) # E: incompatible type
  12. np.save(str_file, AR_i8) # E: incompatible type
  13. np.savez(bytes_path, AR_i8) # E: incompatible type
  14. np.savez(str_file, AR_i8) # E: incompatible type
  15. np.savez_compressed(bytes_path, AR_i8) # E: incompatible type
  16. np.savez_compressed(str_file, AR_i8) # E: incompatible type
  17. np.loadtxt(bytes_path) # E: incompatible type
  18. np.fromregex(bytes_path, ".", np.int64) # E: No overload variant
  19. np.recfromtxt(bytes_path) # E: incompatible type
  20. np.recfromcsv(bytes_path) # E: incompatible type