Skip to content

Commit 46fc784

Browse files
authored
Shrink mypy whitelist for sphinx.ext.autosummary.generate (sphinx-doc#12604)
1 parent 4808041 commit 46fc784

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ module = [
252252
"sphinx.events",
253253
"sphinx.ext.autodoc",
254254
"sphinx.ext.autodoc.importer",
255-
"sphinx.ext.autosummary.generate",
256255
"sphinx.ext.doctest",
257256
"sphinx.ext.graphviz",
258257
"sphinx.ext.inheritance_diagram",

sphinx/ext/autosummary/generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(self, app: Sphinx) -> None:
145145
# ``install_gettext_translations`` is injected by the ``jinja2.ext.i18n`` extension
146146
self.env.install_gettext_translations(app.translator) # type: ignore[attr-defined]
147147

148-
def render(self, template_name: str, context: dict) -> str:
148+
def render(self, template_name: str, context: dict[str, Any]) -> str:
149149
"""Render a template file."""
150150
try:
151151
template = self.env.get_template(template_name)
@@ -282,7 +282,7 @@ def generate_autosummary_content(
282282
imported_members: bool,
283283
app: Any,
284284
recursive: bool,
285-
context: dict,
285+
context: dict[str, Any],
286286
modname: str | None = None,
287287
qualname: str | None = None,
288288
) -> str:

0 commit comments

Comments
 (0)