From: Melissa LeBlanc-Williams Date: Thu, 20 Jan 2022 16:27:33 +0000 (-0800) Subject: Merge pull request #544 from tekktrik/doc/update-readme X-Git-Tag: 6.20.1 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/809af94ed7982109ea563284daf806a1d167676c?hp=7fafb8770abd9697e9ad39938aee0a32f9bb0bf6 Merge pull request #544 from tekktrik/doc/update-readme Typing Library Documentation Touchups --- diff --git a/README.rst b/README.rst index 8f3aa29..5e9c020 100755 --- a/README.rst +++ b/README.rst @@ -20,10 +20,12 @@ Introduction This repository contains a selection of packages emulating the CircuitPython API for devices or hosts running CPython or MicroPython. Working code exists to emulate these CircuitPython packages: +* **_typing** - (Legacy) subset of types for C-level protocols * **analogio** - analog input/output pins, using pin identities from board+microcontroller packages * **bitbangio** - software-driven interfaces for I2C, SPI * **board** - breakout-specific pin identities * **busio** - hardware-driven interfaces for I2C, SPI, UART +* **circuitpython_typing** - Subset of types for C-level protocols * **digitalio** - digital input/output pins, using pin identities from board+microcontroller packages * **keypad** - support for scanning keys and key matrices * **microcontroller** - chip-specific pin identities diff --git a/src/_typing.py b/src/_typing.py index 3c1671b..0e371c4 100644 --- a/src/_typing.py +++ b/src/_typing.py @@ -23,9 +23,9 @@ `_typing` - Define (legacy) subset of types for C-level protocols ================================================================= -See `CircuitPython:circuitpython_typing` in CircuitPython for more details. - * Author(s): Alec Delaney + +See `CircuitPython:circuitpython_typing` in CircuitPython for more details. """ from circuitpython_typing import * # pylint: disable=wildcard-import,unused-wildcard-import diff --git a/src/circuitpython_typing.py b/src/circuitpython_typing.py index 3df3587..3ab01c3 100644 --- a/src/circuitpython_typing.py +++ b/src/circuitpython_typing.py @@ -34,17 +34,19 @@ from numpy import ndarray ReadableBuffer = Union[bytes, bytearray, memoryview, array, ndarray] """Classes that implement the readable buffer protocol - - `bytes` - - `bytearray` - - `memoryview` - - `array.array` - - ``numpy.ndarray`` + + * `bytes` + * `bytearray` + * `memoryview` + * `array.array` + * ``numpy.ndarray`` """ WriteableBuffer = Union[bytearray, memoryview, array, ndarray] """Classes that implement the writeable buffer protocol - - `bytearray` - - `memoryview` - - `array.array` - - ``numpy.ndarray`` + + * `bytearray` + * `memoryview` + * `array.array` + * ``numpy.ndarray`` """