We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f5c759 commit 8119585Copy full SHA for 8119585
1 file changed
docs/_scripts/macros.py
@@ -6,7 +6,7 @@
6
from frequenz.repo.config.mkdocs.mkdocstrings_macros import hook_env_with_everything
7
from griffe import ModulesCollection, Object
8
from mkdocs_macros.plugin import MacrosPlugin
9
-from mkdocstrings_handlers.python.handler import PythonHandler
+from mkdocstrings_handlers.python import PythonHandler
10
11
12
def define_env(env: MacrosPlugin) -> None:
@@ -47,8 +47,7 @@ def docstring_summary(symbol: str) -> str:
47
"""
48
docstring = _get_docstring(symbol)
49
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]
+ return python_handler.do_convert_markdown(
52
summary, heading_level=1, strip_paragraph=True
53
)
54
0 commit comments