File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 110110autoapi_python_class_content = "both"
111111autoapi_python_use_implicit_namespaces = True
112112autoapi_root = "shared-bindings"
113+
114+ # Suppress cache warnings to prevent "unpickable" [sic] warning
115+ # about autoapi_prepare_jinja_env() from sphinx >= 7.3.0.
116+ # See https://github.com/sphinx-doc/sphinx/issues/12300
117+ suppress_warnings = ["config.cache" ]
118+
113119def autoapi_prepare_jinja_env (jinja_env ):
114120 jinja_env .globals ['support_matrix_reverse' ] = modules_support_matrix_reverse
115121
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ python3 -m venv test-stubs
55pip install mypy isort black adafruit-circuitpython-typing wheel build
66rm -rf circuitpython-stubs .mypy_cache
77make stubs
8- pip install --force-reinstall circuitpython-stubs/dist/circuitpython-stubs-* .tar.gz
8+ # Allow either dash or underscore as separator. setuptools v69.3.0 changed from "-" to "_".
9+ pip install --force-reinstall circuitpython-stubs/dist/circuitpython[-_]stubs-* .tar.gz
910export MYPYPATH=circuitpython-stubs/
1011echo " The following test should pass:"
1112mypy -c ' import busio; b: busio.I2C; b.writeto(0x30, b"")'
You can’t perform that action at this time.
0 commit comments