]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Remove ndarray from Unions
authortekktrik <89490472+tekktrik@users.noreply.github.com>
Fri, 11 Feb 2022 19:10:58 +0000 (14:10 -0500)
committerGitHub <noreply@github.com>
Fri, 11 Feb 2022 19:10:58 +0000 (14:10 -0500)
src/circuitpython_typing.py

index 11d0c4e3e1d843eedfe2b81b219f1c66644541cf..caad6f2a82b6dd42b5057e3e61dfaf7c3916a669 100644 (file)
@@ -31,7 +31,7 @@ See `CircuitPython:circuitpython_typing` in CircuitPython for more details.
 from typing import Union
 from array import array
 
 from typing import Union
 from array import array
 
-ReadableBuffer = Union[bytes, bytearray, memoryview, array, ndarray]
+ReadableBuffer = Union[bytes, bytearray, memoryview, array]
 """Classes that implement the readable buffer protocol
 
   * `bytes`
 """Classes that implement the readable buffer protocol
 
   * `bytes`
@@ -40,7 +40,7 @@ ReadableBuffer = Union[bytes, bytearray, memoryview, array, ndarray]
   * `array.array`
 """
 
   * `array.array`
 """
 
-WriteableBuffer = Union[bytearray, memoryview, array, ndarray]
+WriteableBuffer = Union[bytearray, memoryview, array]
 """Classes that implement the writeable buffer protocol
 
   * `bytearray`
 """Classes that implement the writeable buffer protocol
 
   * `bytearray`