From 137388d47509adfc948c87eeb9c0925d876949c7 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Fri, 12 Jan 2024 08:44:16 +1000 Subject: [PATCH] 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. --- repo_autoindex/_impl/yum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo_autoindex/_impl/yum.py b/repo_autoindex/_impl/yum.py index 960281d..11be8aa 100644 --- a/repo_autoindex/_impl/yum.py +++ b/repo_autoindex/_impl/yum.py @@ -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)