]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/circuitpython_typing.py
Remove ndarray from Unions
[Adafruit_Blinka-hackapet.git] / src / circuitpython_typing.py
index 4a532406d383a347ce05abc39175a9dae6f8b618..caad6f2a82b6dd42b5057e3e61dfaf7c3916a669 100644 (file)
 `circuitpython_typing` - Define subset of types for C-level protocols
 =====================================================================
 
 `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
 
 * 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
 """Classes that implement the readable buffer protocol
-  - `bytes`
-  - `bytearray`
-  - `memoryview`
-  - `array.array`
-  - `ndarray`
+
+  * `bytes`
+  * `bytearray`
+  * `memoryview`
+  * `array.array`
 """
 
 """
 
-WriteableBuffer = Union[bytearray, memoryview, array, ndarray]
+WriteableBuffer = Union[bytearray, memoryview, array]
 """Classes that implement the writeable buffer protocol
 """Classes that implement the writeable buffer protocol
-  - `bytearray`
-  - `memoryview`
-  - `array.array`
-  - `ndarray`
+
+  * `bytearray`
+  * `memoryview`
+  * `array.array`
 """
 """