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