Skip to content

Commit 952bdbb

Browse files
danieleadesDaniel Eades
andauthored
Shrink mypy whitelist for sphinx.cmd.quickstart (sphinx-doc#12617)
Co-authored-by: Daniel Eades <[email protected]>
1 parent 46fc784 commit 952bdbb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ strict_optional = false
244244
[[tool.mypy.overrides]]
245245
module = [
246246
"sphinx.application",
247-
"sphinx.cmd.quickstart",
248247
"sphinx.config",
249248
"sphinx.domains",
250249
"sphinx.domains.c",

sphinx/cmd/quickstart.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,10 @@ def ask_user(d: dict[str, Any]) -> None:
326326

327327

328328
def generate(
329-
d: dict, overwrite: bool = True, silent: bool = False, templatedir: str | None = None,
329+
d: dict[str, Any],
330+
overwrite: bool = True,
331+
silent: bool = False,
332+
templatedir: str | None = None,
330333
) -> None:
331334
"""Generate project based on values in *d*."""
332335
template = QuickstartRenderer(templatedir or '')
@@ -423,7 +426,7 @@ def write_file(fpath: str, content: str, newline: str | None = None) -> None:
423426
print()
424427

425428

426-
def valid_dir(d: dict) -> bool:
429+
def valid_dir(d: dict[str, Any]) -> bool:
427430
dir = d['path']
428431
if not path.exists(dir):
429432
return True

0 commit comments

Comments
 (0)