Skip to content

Commit 91c48ff

Browse files
committed
ci: Lint
1 parent d1e15d4 commit 91c48ff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/griffe_pydantic/_internal/dynamic.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Any, Callable
3+
from typing import TYPE_CHECKING, Any
44

55
from griffe import (
66
Attribute,
@@ -13,6 +13,10 @@
1313

1414
from griffe_pydantic._internal import common
1515

16+
if TYPE_CHECKING:
17+
from collections.abc import Callable
18+
19+
1620
_logger = get_logger("griffe_pydantic")
1721

1822

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def fixture_mkdocs_conf(request: pytest.FixtureRequest, tmp_path: Path) -> Itera
4949
@pytest.fixture(name="python_handler")
5050
def fixture_python_handler(mkdocs_conf: MkDocsConfig) -> PythonHandler:
5151
"""Return a PythonHandler instance."""
52-
handlers = mkdocs_conf.plugins["mkdocstrings"].handlers # ty: ignore[possibly-missing-attribute]
52+
handlers = mkdocs_conf.plugins["mkdocstrings"].handlers # ty: ignore[unresolved-attribute]
5353
handler = handlers.get_handler("python")
5454
handler._update_env(md=Markdown(extensions=["toc"]))
5555
handler.env.filters["convert_markdown"] = lambda *args, **kwargs: str(args) + str(kwargs)

0 commit comments

Comments
 (0)