npyio.pyi 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. from typing import Mapping, List, Any
  2. from numpy import (
  3. DataSource as DataSource,
  4. )
  5. from numpy.core.multiarray import (
  6. packbits as packbits,
  7. unpackbits as unpackbits,
  8. )
  9. __all__: List[str]
  10. def loads(*args, **kwargs): ...
  11. class BagObj:
  12. def __init__(self, obj): ...
  13. def __getattribute__(self, key): ...
  14. def __dir__(self): ...
  15. def zipfile_factory(file, *args, **kwargs): ...
  16. class NpzFile(Mapping[Any, Any]):
  17. zip: Any
  18. fid: Any
  19. files: Any
  20. allow_pickle: Any
  21. pickle_kwargs: Any
  22. f: Any
  23. def __init__(self, fid, own_fid=..., allow_pickle=..., pickle_kwargs=...): ...
  24. def __enter__(self): ...
  25. def __exit__(self, exc_type, exc_value, traceback): ...
  26. def close(self): ...
  27. def __del__(self): ...
  28. def __iter__(self): ...
  29. def __len__(self): ...
  30. def __getitem__(self, key): ...
  31. def iteritems(self): ...
  32. def iterkeys(self): ...
  33. def load(file, mmap_mode=..., allow_pickle=..., fix_imports=..., encoding=...): ...
  34. def save(file, arr, allow_pickle=..., fix_imports=...): ...
  35. def savez(file, *args, **kwds): ...
  36. def savez_compressed(file, *args, **kwds): ...
  37. def loadtxt(
  38. fname,
  39. dtype=...,
  40. comments=...,
  41. delimiter=...,
  42. converters=...,
  43. skiprows=...,
  44. usecols=...,
  45. unpack=...,
  46. ndmin=...,
  47. encoding=...,
  48. max_rows=...,
  49. *,
  50. like=...,
  51. ): ...
  52. def savetxt(
  53. fname,
  54. X,
  55. fmt=...,
  56. delimiter=...,
  57. newline=...,
  58. header=...,
  59. footer=...,
  60. comments=...,
  61. encoding=...,
  62. ): ...
  63. def fromregex(file, regexp, dtype, encoding=...): ...
  64. def genfromtxt(
  65. fname,
  66. dtype=...,
  67. comments=...,
  68. delimiter=...,
  69. skip_header=...,
  70. skip_footer=...,
  71. converters=...,
  72. missing_values=...,
  73. filling_values=...,
  74. usecols=...,
  75. names=...,
  76. excludelist=...,
  77. deletechars=...,
  78. replace_space=...,
  79. autostrip=...,
  80. case_sensitive=...,
  81. defaultfmt=...,
  82. unpack=...,
  83. usemask=...,
  84. loose=...,
  85. invalid_raise=...,
  86. max_rows=...,
  87. encoding=...,
  88. *,
  89. like=...,
  90. ): ...
  91. def recfromtxt(fname, **kwargs): ...
  92. def recfromcsv(fname, **kwargs): ...
  93. # NOTE: Deprecated
  94. # def ndfromtxt(fname, **kwargs): ...
  95. # def mafromtxt(fname, **kwargs): ...