We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6752b4 commit c98e4eeCopy full SHA for c98e4ee
adafruit_circuitplayground/express.py
@@ -20,7 +20,7 @@ class Express:
20
a time."""
21
def __init__(self):
22
# Only create the circuit module member when we're aren't being imported by Sphinx
23
- if digitalio.DigitalInOut.__module__ == "sphinx.ext.autodoc":
+ if "__module__" in dir(digitalio.DigitalInOut) and digitalio.DigitalInOut.__module__ == "sphinx.ext.autodoc":
24
return
25
self._a = digitalio.DigitalInOut(board.BUTTON_A)
26
self._a.switch_to_input(pull=digitalio.Pull.DOWN)
0 commit comments