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