`circuitpython_typing` - Define subset of types for C-level protocols
=====================================================================
-See `CircuitPython:circuit_python` in CircuitPython for more details.
+See `CircuitPython:circuitpython_typing` in CircuitPython for more details.
* Author(s): Alec Delaney
"""
from typing import Union
from array import array
-from numpy import ndarray
ReadableBuffer = Union[bytes, bytearray, memoryview, array, ndarray]
"""Classes that implement the readable buffer protocol
- - `bytes`
- - `bytearray`
- - `memoryview`
- - `array.array`
- - `ndarray`
+
+ * `bytes`
+ * `bytearray`
+ * `memoryview`
+ * `array.array`
"""
WriteableBuffer = Union[bytearray, memoryview, array, ndarray]
"""Classes that implement the writeable buffer protocol
- - `bytearray`
- - `memoryview`
- - `array.array`
- - `ndarray`
+
+ * `bytearray`
+ * `memoryview`
+ * `array.array`
"""