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 110
110
autoapi_python_class_content = "both"
111
111
autoapi_python_use_implicit_namespaces = True
112
112
autoapi_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
+
113
119
def autoapi_prepare_jinja_env (jinja_env ):
114
120
jinja_env .globals ['support_matrix_reverse' ] = modules_support_matrix_reverse
115
121
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ python3 -m venv test-stubs
5
5
pip install mypy isort black adafruit-circuitpython-typing wheel build
6
6
rm -rf circuitpython-stubs .mypy_cache
7
7
make 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
9
10
export MYPYPATH=circuitpython-stubs/
10
11
echo " The following test should pass:"
11
12
mypy -c ' import busio; b: busio.I2C; b.writeto(0x30, b"")'
You can’t perform that action at this time.
0 commit comments