Skip to content

Commit 7cddc88

Browse files
committed
Remove unnecessary # type: ignore
It seems the new markdown version is properly typed. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent c55865b commit 7cddc88

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/_scripts/macros.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ def _slugify(text: str) -> str:
2727
Returns:
2828
The slugified text.
2929
"""
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]
30+
return toc.slugify_unicode(text, "-")
3431

3532

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

0 commit comments

Comments
 (0)