]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/circuitpython_typing.py
Change numpy.ndarray to use code formatting
[Adafruit_Blinka-hackapet.git] / src / circuitpython_typing.py
index 93c3a3d7e240809d82dd0f5b0eb67ced4abd1eb5..3df3587f7e88fe286bfe75eca52ebbf42b3fe0c5 100644 (file)
@@ -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,19 @@ 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`
+  - ``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``
 """