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.
2 parents 0fa4d3d + 922ec32 commit c6d195aCopy full SHA for c6d195a
tools/test-stubs.sh
@@ -6,7 +6,10 @@ pip install mypy isort black adafruit-circuitpython-typing wheel build
6
rm -rf circuitpython-stubs .mypy_cache
7
make stubs
8
pip install --force-reinstall circuitpython-stubs/dist/circuitpython-stubs-*.tar.gz
9
+export MYPYPATH=circuitpython-stubs/
10
+echo "The following test should pass:"
11
mypy -c 'import busio; b: busio.I2C; b.writeto(0x30, b"")'
12
+echo "The next two tests are expected to show type errors:"
13
! mypy -c 'import busio; b: busio.I2C; b.readfrom_into(0x30, b"")'
14
! mypy -c 'import busio; b: busio.I2C; b.write(0x30, b"")'
-echo "(The above two tests are expected to show type errors)"
15
+echo "Typing tests complete"
0 commit comments