Skip to content

Commit d49a9ec

Browse files
committed
type ignore attr-defined
See sphinx-doc/sphinx#12492 The mypy warning only applies to `sphinx>=v7.4`, but the code is only executed for `sphinx<v6.2.0`.
1 parent b62dbaa commit d49a9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_immaterial/apidoc/fix_sphinx_issue_11147.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def nested_parse_with_titles(state, content, node):
2828
return orig_nested_parse_with_titles(state, content, node)
2929

3030
sphinx.util.nodes.nested_parse_with_titles = nested_parse_with_titles # type: ignore[assignment]
31-
sphinx.directives.nested_parse_with_titles = nested_parse_with_titles # type: ignore[assignment]
31+
sphinx.directives.nested_parse_with_titles = nested_parse_with_titles # type: ignore[assignment,attr-defined]
3232

3333

3434
_monkey_patch_nested_parse_with_titles()

0 commit comments

Comments
 (0)