Skip to content

Commit

Permalink
[nit] conf.py: annotate the type, instead of ignoring the error (#17727)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
wyattscarpenter committed Sep 2, 2024
1 parent 0ca47e8 commit 0412590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypyc/doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [] # type: ignore[var-annotated]
extensions: list[str] = []

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

0 comments on commit 0412590

Please sign in to comment.