Fix 'error: Unused "type: ignore" comment' with mypy 0.981

This commit is contained in:
Rohan McGovern 2022-10-05 10:38:32 +10:00
parent 4291e34a93
commit af99a34e39

View file

@ -22,7 +22,7 @@ def assert_repodata_ok(condition: Any, msg: str):
def get_tag(elem: Element, name: str) -> Element:
elems: list[Element] = elem.getElementsByTagName(name) # type: ignore
elems: list[Element] = elem.getElementsByTagName(name)
assert_repodata_ok(len(elems) == 1, f"expected exactly one {name} tag")
return elems[0]