From: Alec Delaney Date: Wed, 19 Jan 2022 16:10:56 +0000 (-0500) Subject: Reformatted and linted X-Git-Tag: 6.20.0^2~15 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/5adbc0bd6ca973262673adb50604f29df0eaeaff?ds=inline Reformatted and linted --- diff --git a/src/_typing.py b/src/_typing.py index 473b234..a3301ae 100644 --- a/src/_typing.py +++ b/src/_typing.py @@ -28,4 +28,4 @@ See `CircuitPython:board` in CircuitPython for more details. * Author(s): Alec Delaney """ -from circuitpython_typing import * +from circuitpython_typing import * # pylint: disable=wildcard-import,unused-wildcard-import diff --git a/src/circuitpython_typing.py b/src/circuitpython_typing.py index 93c3a3d..192ce0a 100644 --- a/src/circuitpython_typing.py +++ b/src/circuitpython_typing.py @@ -32,9 +32,7 @@ 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` @@ -43,9 +41,7 @@ ReadableBuffer = Union[ - `numpy.ndarray` """ -WriteableBuffer = Union[ - bytearray, memoryview, array, ndarray -] +WriteableBuffer = Union[bytearray, memoryview, array, ndarray] """Classes that implement the writeable buffer protocol - `bytearray` - `memoryview`