X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/6d111ba0415724aa22717bd002b97a4a8d9e347d..465220dbaed3a788f1a2bb20921629ee8ec0149a:/src/circuitpython_typing.py diff --git a/src/circuitpython_typing.py b/src/circuitpython_typing.py index 8b803df..caad6f2 100644 --- a/src/circuitpython_typing.py +++ b/src/circuitpython_typing.py @@ -23,28 +23,27 @@ `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 typing import Union from array import array -from numpy import ndarray -ReadableBuffer = Union[bytes, bytearray, memoryview, array, ndarray] +ReadableBuffer = Union[bytes, bytearray, memoryview, array] """Classes that implement the readable buffer protocol - - `bytes` - - `bytearray` - - `memoryview` - - `array.array` - - `numpy.ndarray` + + * `bytes` + * `bytearray` + * `memoryview` + * `array.array` """ -WriteableBuffer = Union[bytearray, memoryview, array, ndarray] +WriteableBuffer = Union[bytearray, memoryview, array] """Classes that implement the writeable buffer protocol - - `bytearray` - - `memoryview` - - `array.array` - - `numpy.ndarray` + + * `bytearray` + * `memoryview` + * `array.array` """