Skip to content

Commit 0412590

Browse files
[nit] conf.py: annotate the type, instead of ignoring the error (#17727)
There was a type-ignore here. But we can simply do what mypy is asking us to do; in fact, the comment even already tells us these have to be strings, (like the other arrays).
1 parent 0ca47e8 commit 0412590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# Add any Sphinx extension module names here, as strings. They can be
3737
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3838
# ones.
39-
extensions = [] # type: ignore[var-annotated]
39+
extensions: list[str] = []
4040

4141
# Add any paths that contain templates here, relative to this directory.
4242
templates_path = ["_templates"]

0 commit comments

Comments
 (0)