Avoid spurious mypy failure in latest xml type hints

startElement signature changed in the .pyi stubs for XML classes,
triggering a mypy complaint here. Suppress it as there is no actual
error here.
This commit is contained in:
Rohan McGovern 2024-01-12 08:44:16 +10:00
parent a015ae58d0
commit 137388d475

View file

@ -101,7 +101,7 @@ class PackagesParser(ContentHandler):
return self.packages
def startElement(self, name: str, attrs: Mapping[str, Any]):
def startElement(self, name: str, attrs: Mapping[str, Any]): # type: ignore
self.current_path.append(name)
LOG.debug("entering element %s", self.current_path)