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