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.
# type: ignore
1 parent c55865b commit 7cddc88Copy full SHA for 7cddc88
docs/_scripts/macros.py
@@ -27,10 +27,7 @@ def _slugify(text: str) -> str:
27
Returns:
28
The slugified text.
29
"""
30
- # The type of the return value is not defined for the markdown library.
31
- # Also for some reason `mypy` thinks the `toc` module doesn't have a
32
- # `slugify_unicode` function, but it definitely does.
33
- return toc.slugify_unicode(text, "-") # type: ignore[attr-defined,no-any-return]
+ return toc.slugify_unicode(text, "-")
34
35
36
def _hook_macros_plugin(env: macros.MacrosPlugin) -> None:
0 commit comments