Skip to content

Commit 72c30d5

Browse files
committed
Use a more specific type ignore for the macro decorator
The new mypy version uses a more specific error code for untyped decorators. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 79d9e82 commit 72c30d5

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
@@ -20,7 +20,7 @@ def define_env(env: macros.MacrosPlugin) -> None:
2020
env: The environment to define the macro functions in.
2121
"""
2222

23-
@env.macro # type: ignore[misc]
23+
@env.macro # type: ignore[untyped-decorator]
2424
def glossary(term: str, text: str | None = None) -> str:
2525
"""Create a link to the glossary entry for the given term.
2626

0 commit comments

Comments
 (0)