X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/333dd893733b4fe83dfba3be0a76ab82f79d4065..66fb79ea0a686ebe057f6a6cb085de44870648ba:/src/circuitpython_typing.py diff --git a/src/circuitpython_typing.py b/src/circuitpython_typing.py index 93c3a3d..3ab01c3 100644 --- a/src/circuitpython_typing.py +++ b/src/circuitpython_typing.py @@ -21,9 +21,9 @@ # 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 """ @@ -32,23 +32,21 @@ 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, ndarray] """Classes that implement the readable buffer protocol - - `bytes` - - `bytearray` - - `memoryview` - - `array.array` - - `numpy.ndarray` + + * `bytes` + * `bytearray` + * `memoryview` + * `array.array` + * ``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` + + * `bytearray` + * `memoryview` + * `array.array` + * ``numpy.ndarray`` """