Skip to content

Commit cd208ad

Browse files
committed
Remove unnecessary type ignore
This was fixed upstream. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent fb6a94e commit cd208ad

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
@@ -29,10 +29,7 @@ def _slugify(text: str) -> str:
2929
Returns:
3030
The slugified text.
3131
"""
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]
32+
return toc.slugify_unicode(text, "-")
3633

3734

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

0 commit comments

Comments
 (0)