Merge pull request #6814 from tekktrik/doc/fix-typing

Fix type annotation in adafruit_bus_device.SPIDevice.__init__()
This commit is contained in:
MicroDev 2022-08-25 12:11:38 +05:30 committed by GitHub
commit 073fc9d986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@
//| class SPIDevice:
//| """SPI Device Manager"""
//|
//| def __init__(self, spi: busio.SPI, chip_select: microcontroller.Pin, *, baudrate: int = 100000, polarity: int = 0, phase: int = 0, extra_clocks : int = 0) -> None:
//| def __init__(self, spi: busio.SPI, chip_select: digitalio.DigitalInOut, *, baudrate: int = 100000, polarity: int = 0, phase: int = 0, extra_clocks : int = 0) -> None:
//|
//| """
//| Represents a single SPI device and manages locking the bus and the device address.