Skip to content

need adafruit-blinka; fix imports #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions adafruit_bus_device/i2c_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@
try:
from typing import Optional, Type
from types import TracebackType
from busio import I2C

try:
from circuitpython_typing import ReadableBuffer, WriteableBuffer
except ImportError:
from _typing import ReadableBuffer, WriteableBuffer
from circuitpython_typing import ReadableBuffer, WriteableBuffer
except ImportError:
pass

from busio import I2C

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BusDevice.git"

Expand Down
5 changes: 3 additions & 2 deletions adafruit_bus_device/spi_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
try:
from typing import Optional, Type
from types import TracebackType
from busio import SPI
from digitalio import DigitalInOut
except ImportError:
pass

from busio import SPI
from digitalio import DigitalInOut

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BusDevice.git"

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
autodoc_mock_imports = ["busio", "digitalio", "circuitpython_typing", "_typing"]
autodoc_mock_imports = ["busio", "digitalio", "circuitpython_typing"]

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense

adafruit-blinka