format.pyi 748 B

12345678910111213141516171819202122
  1. from typing import Any, Literal, Final
  2. __all__: list[str]
  3. EXPECTED_KEYS: Final[set[str]]
  4. MAGIC_PREFIX: Final[bytes]
  5. MAGIC_LEN: Literal[8]
  6. ARRAY_ALIGN: Literal[64]
  7. BUFFER_SIZE: Literal[262144] # 2**18
  8. def magic(major, minor): ...
  9. def read_magic(fp): ...
  10. def dtype_to_descr(dtype): ...
  11. def descr_to_dtype(descr): ...
  12. def header_data_from_array_1_0(array): ...
  13. def write_array_header_1_0(fp, d): ...
  14. def write_array_header_2_0(fp, d): ...
  15. def read_array_header_1_0(fp): ...
  16. def read_array_header_2_0(fp): ...
  17. def write_array(fp, array, version=..., allow_pickle=..., pickle_kwargs=...): ...
  18. def read_array(fp, allow_pickle=..., pickle_kwargs=...): ...
  19. def open_memmap(filename, mode=..., dtype=..., shape=..., fortran_order=..., version=...): ...