_internal.pyi 525 B

123456789101112131415161718
  1. from typing import Any
  2. # TODO: add better annotations when ctypes is stubbed out
  3. class _ctypes:
  4. @property
  5. def data(self) -> int: ...
  6. @property
  7. def shape(self) -> Any: ...
  8. @property
  9. def strides(self) -> Any: ...
  10. def data_as(self, obj: Any) -> Any: ...
  11. def shape_as(self, obj: Any) -> Any: ...
  12. def strides_as(self, obj: Any) -> Any: ...
  13. def get_data(self) -> int: ...
  14. def get_shape(self) -> Any: ...
  15. def get_strides(self) -> Any: ...
  16. def get_as_parameter(self) -> Any: ...