X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/465220dbaed3a788f1a2bb20921629ee8ec0149a..6ecc50af7816e1db796d13160cbd398b67f66cd9:/src/circuitpython_typing.py diff --git a/src/circuitpython_typing.py b/src/circuitpython_typing.py deleted file mode 100644 index caad6f2..0000000 --- a/src/circuitpython_typing.py +++ /dev/null @@ -1,49 +0,0 @@ -# The MIT License (MIT) -# -# Copyright (c) 2017 cefn for adafruit industries -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -""" -`circuitpython_typing` - Define subset of types for C-level protocols -===================================================================== - -See `CircuitPython:circuitpython_typing` in CircuitPython for more details. - -* Author(s): Alec Delaney -""" - -from typing import Union -from array import array - -ReadableBuffer = Union[bytes, bytearray, memoryview, array] -"""Classes that implement the readable buffer protocol - - * `bytes` - * `bytearray` - * `memoryview` - * `array.array` -""" - -WriteableBuffer = Union[bytearray, memoryview, array] -"""Classes that implement the writeable buffer protocol - - * `bytearray` - * `memoryview` - * `array.array` -"""