From 14d4491000e386796beb9f5ad3378550bf4e6997 Mon Sep 17 00:00:00 2001 From: pennae Date: Sat, 25 Nov 2023 16:15:45 +0100 Subject: [PATCH] nixos-render-docs: fix mypy test markdown-it-py somewhat recently added more type annotations to their code, obsoleting a few lint-ignores in nrd. --- pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs/md.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs/md.py b/pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs/md.py index 85513ef48697..894daf9ca9c7 100644 --- a/pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs/md.py +++ b/pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs/md.py @@ -365,7 +365,7 @@ def _attr_span_plugin(md: markdown_it.MarkdownIt) -> None: return False id, classes = parsed_attrs - token = state.push("attr_span_begin", "span", 1) # type: ignore[no-untyped-call] + token = state.push("attr_span_begin", "span", 1) if id: token.attrs['id'] = id if classes: @@ -375,7 +375,7 @@ def _attr_span_plugin(md: markdown_it.MarkdownIt) -> None: state.posMax = label_end state.md.inline.tokenize(state) - state.push("attr_span_end", "span", -1) # type: ignore[no-untyped-call] + state.push("attr_span_end", "span", -1) state.pos = label_end + match.end() + 1 state.posMax = input_end