summaryrefslogtreecommitdiff
path: root/sphinx/config.py
diff options
context:
space:
mode:
authorJean-François B <2589111+jfbu@users.noreply.github.com>2022-08-06 18:31:14 +0200
committerJean-François B <2589111+jfbu@users.noreply.github.com>2022-08-06 18:31:14 +0200
commit5c82449eca73ef448eb7fdfbcc061cb91d70c18c (patch)
treec4a8394dd9105ba73e2df12c3c5e26cbae501d54 /sphinx/config.py
parent6f530ca3ea305a4c4e077a237fc7196e959a4bb4 (diff)
parent59056aa7816ebae81aa6842290aa7a6ece14d1bd (diff)
downloadsphinx-git-5c82449eca73ef448eb7fdfbcc061cb91d70c18c.tar.gz
Merge branch '5.x'
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/config.py b/sphinx/config.py
index 92395dd27..c339ab5cf 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -424,7 +424,7 @@ def correct_copyright_year(app: "Sphinx", config: Config) -> None:
config[k] = copyright_year_re.sub(replace, config[k])
-def check_confval_types(app: "Sphinx", config: Config) -> None:
+def check_confval_types(app: Optional["Sphinx"], config: Config) -> None:
"""Check all values for deviation from the default value's type, since
that can result in TypeErrors all over the place NB.
"""