mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove `sphinx.domains
` from the no-any-generics whitelist
This commit is contained in:
parent
f071dc1b5b
commit
2bf08d6da4
@ -231,7 +231,6 @@ strict_optional = false
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = [
|
||||
"sphinx.domains",
|
||||
"sphinx.domains.c",
|
||||
"sphinx.domains.cpp",
|
||||
]
|
||||
|
@ -98,7 +98,7 @@ class Domain:
|
||||
#: node_class -> (enum_node_type, title_getter)
|
||||
enumerable_nodes: dict[type[Node], tuple[str, TitleGetter | None]] = {}
|
||||
#: data value for a fresh environment
|
||||
initial_data: dict = {}
|
||||
initial_data: dict[str, Any] = {}
|
||||
#: data value
|
||||
data: dict[str, Any]
|
||||
#: data version, bump this when the format of `self.data` changes
|
||||
@ -170,7 +170,7 @@ class Domain:
|
||||
text: str,
|
||||
lineno: int,
|
||||
inliner: Inliner,
|
||||
options: dict | None = None,
|
||||
options: dict[str, Any] | None = None,
|
||||
content: Sequence[str] = (),
|
||||
) -> tuple[list[Node], list[nodes.system_message]]:
|
||||
return self.roles[name](
|
||||
|
Loading…
Reference in New Issue
Block a user