mirror of
https://github.com/release-engineering/repo-autoindex.git
synced 2025-02-23 13:42:52 +00:00
Fix 'error: Unused "type: ignore" comment' with mypy 0.981
This commit is contained in:
parent
4291e34a93
commit
af99a34e39
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue