Skip to content

Commit 995fb70

Browse files
Fix mypy error: 'Unused "type: ignore[attr-defined, no-any-return]" comment'
Signed-off-by: camille-bouvy-frequenz <[email protected]>
1 parent 38fa9c1 commit 995fb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_scripts/macros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _slugify(text: str) -> str:
3030
# The type of the return value is not defined for the markdown library.
3131
# Also for some reason `mypy` thinks the `toc` module doesn't have a
3232
# `slugify_unicode` function, but it definitely does.
33-
return toc.slugify_unicode(text, "-") # type: ignore[attr-defined,no-any-return]
33+
return toc.slugify_unicode(text, "-")
3434

3535

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

0 commit comments

Comments
 (0)