From ed8eb6e4ea1d2613f93d8e93342ee4b7ce6579b7 Mon Sep 17 00:00:00 2001 From: M Bernt Date: Thu, 15 Feb 2024 16:03:46 +0100 Subject: [PATCH] Add type ignore Co-authored-by: Nicola Soranzo --- lib/galaxy/tool_util/linters/xsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tool_util/linters/xsd.py b/lib/galaxy/tool_util/linters/xsd.py index 63abd05c07f8..aa17453d0bcf 100644 --- a/lib/galaxy/tool_util/linters/xsd.py +++ b/lib/galaxy/tool_util/linters/xsd.py @@ -25,7 +25,7 @@ def lint(cls, tool_source: "ToolSource", lint_ctx: "LintContext"): xmlschema = etree.parse(TOOL_XSD) xsd = etree.XMLSchema(xmlschema) if not xsd.validate(tool_xml): - for error in xsd.error_log: + for error in xsd.error_log: # type: ignore[attr-defined] # https://github.com/lxml/lxml-stubs/pull/100 # the validation error contains the path which allows # us to lookup the node that is reported in the lint context node = tool_xml.xpath(error.path)