Skip to content

Commit 8119585

Browse files
committed
Fix removed import in the new mkdocstrings-python 2.0.0
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
1 parent 2f5c759 commit 8119585

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/_scripts/macros.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from frequenz.repo.config.mkdocs.mkdocstrings_macros import hook_env_with_everything
77
from griffe import ModulesCollection, Object
88
from mkdocs_macros.plugin import MacrosPlugin
9-
from mkdocstrings_handlers.python.handler import PythonHandler
9+
from mkdocstrings_handlers.python import PythonHandler
1010

1111

1212
def define_env(env: MacrosPlugin) -> None:
@@ -47,8 +47,7 @@ def docstring_summary(symbol: str) -> str:
4747
"""
4848
docstring = _get_docstring(symbol)
4949
summary = docstring.splitlines(keepends=False)[0]
50-
# The python_handler is untyped here, so ignore the type
51-
return python_handler.do_convert_markdown( # type: ignore[no-any-return]
50+
return python_handler.do_convert_markdown(
5251
summary, heading_level=1, strip_paragraph=True
5352
)
5453

0 commit comments

Comments
 (0)