Skip to content

Commit 397e63d

Browse files
committed
ci: Quality
1 parent 6764699 commit 397e63d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/mkdocstrings/handlers/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import warnings
1616
from contextlib import suppress
1717
from pathlib import Path
18-
from typing import Any, BinaryIO, Iterable, Iterator, Mapping, MutableMapping, Sequence
18+
from typing import Any, BinaryIO, ClassVar, Iterable, Iterator, Mapping, MutableMapping, Sequence
1919
from xml.etree.ElementTree import Element, tostring
2020

2121
from jinja2 import Environment, FileSystemLoader
@@ -396,7 +396,7 @@ class BaseHandler(BaseCollector, BaseRenderer):
396396

397397
domain: str = "default"
398398
enable_inventory: bool = False
399-
fallback_config: dict = {}
399+
fallback_config: ClassVar[dict] = {}
400400

401401
# TODO: once the BaseCollector and BaseRenderer classes are removed,
402402
# stop accepting the 'handler' parameter, and instead set a 'name' attribute on the Handler class.

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def fixture_mkdocs_conf(request: pytest.FixtureRequest, tmp_path: Path) -> Itera
3131
**getattr(request, "param", {}),
3232
}
3333
# Re-create it manually as a workaround for https://github.com/mkdocs/mkdocs/issues/2289
34-
mdx_configs: dict[str, Any] = dict(ChainMap(*conf_dict.get("markdown_extensions", []))) # type: ignore[arg-type]
34+
mdx_configs: dict[str, Any] = dict(ChainMap(*conf_dict.get("markdown_extensions", [])))
3535

3636
conf.load_dict(conf_dict)
3737
assert conf.validate() == ([], [])

0 commit comments

Comments
 (0)