mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 18:14:42 +00:00
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.
This commit is contained in:
parent
6f963568d7
commit
14d4491000
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user