Skip to content

Commit

Permalink
Remove unnecessary ignores
Browse files Browse the repository at this point in the history
It seems like the new `mkdocs-material` and `types-markdown` versions
fixed the issues that were causing the errors.

Signed-off-by: Leandro Lucarella <[email protected]>
  • Loading branch information
llucax committed Jan 4, 2024
1 parent f7402e6 commit 19607f7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/_scripts/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ def _slugify(text: str) -> str:
Returns:
The slugified text.
"""
# The type of the return value is not defined for the markdown library.
# Also for some reason `mypy` thinks the `toc` module doesn't have a
# `slugify_unicode` function, but it definitely does.
return toc.slugify_unicode(text, "-") # type: ignore[attr-defined,no-any-return]
return toc.slugify_unicode(text, "-")


def _hook_macros_plugin(env: macros.MacrosPlugin) -> None:
Expand Down

0 comments on commit 19607f7

Please sign in to comment.