Skip to content

Commit c6d195a

Browse files
authored
Merge pull request #8898 from justmobilize/typing-fixes
Fix tools/test-stubs.sh
2 parents 0fa4d3d + 922ec32 commit c6d195a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/test-stubs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ pip install mypy isort black adafruit-circuitpython-typing wheel build
66
rm -rf circuitpython-stubs .mypy_cache
77
make stubs
88
pip install --force-reinstall circuitpython-stubs/dist/circuitpython-stubs-*.tar.gz
9+
export MYPYPATH=circuitpython-stubs/
10+
echo "The following test should pass:"
911
mypy -c 'import busio; b: busio.I2C; b.writeto(0x30, b"")'
12+
echo "The next two tests are expected to show type errors:"
1013
! mypy -c 'import busio; b: busio.I2C; b.readfrom_into(0x30, b"")'
1114
! mypy -c 'import busio; b: busio.I2C; b.write(0x30, b"")'
12-
echo "(The above two tests are expected to show type errors)"
15+
echo "Typing tests complete"

0 commit comments

Comments
 (0)