Closed bendavis78 closed 3 months ago
digitalio
stubs are provided in https://pypi.org/project/circuitpython-stubs/ along with all of the other native modules. board
is a special case because its contents change depending on the board. It takes extra setup: https://learn.adafruit.com/welcome-to-circuitpython/pycharm-and-circuitpython#device-specific-board-stubs-3168661
Closing for now. Please reopen if you have further questions.
CircuitPython version
Code/REPL
Behavior
n/a
Description
My editor is configured to use pyright lsp and mypy for type checking. I'm working in a virtualenv with
mypy
,pyright
, andmicropython-stubs
installed. I'm currently having the following issues:pyright
It's unclear what other packages my editor needs installed for mypy linting and code completion.
mypy
With mypy, I'm unable to resolve any attributes for the
board
anddigitalio
module.Additional information
No response