Skip to content

Commit 1a7359b

Browse files
committed
Lint fixes
1 parent ab4232c commit 1a7359b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

signxml/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ class VerifyResult:
5050
signed_data: bytes
5151
"The binary data as it was signed"
5252

53-
signed_xml: Optional[Element]
53+
signed_xml: Optional[etree._Element]
5454
"The signed data parsed as XML (or None if parsing failed)"
5555

56-
signature_xml: Element
56+
signature_xml: etree._Element
5757
"The signature element parsed as XML"
5858

5959

signxml/xades/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def verify(self, data, **kwargs):
294294
if verify_result.signed_xml is None:
295295
continue
296296
if verify_result.signed_xml.tag == xades_tag("SignedProperties"):
297-
verify_results[i] = XAdESVerifyResult(
297+
verify_results[i] = XAdESVerifyResult( # type: ignore
298298
*astuple(verify_result), signed_properties=self._verify_signed_properties(verify_result)
299299
)
300300
break

test/test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,9 @@ class TestXAdES(unittest.TestCase, LoadExampleKeys):
569569
"nonconformant-dss1770.xml": 3,
570570
}
571571
signature_policy = {
572-
"Identifier": "http://www.facturae.es/politica_de_firma_formato_facturae/politica_de_firma_formato_facturae_v3_1.pdf",
572+
"Identifier": (
573+
"http://www.facturae.es/politica_de_firma_formato_facturae/politica_de_firma_formato_facturae_v3_1.pdf"
574+
),
573575
"Description": "Política de Firma FacturaE v3.1",
574576
"DigestMethod": "sha1",
575577
"DigestValue": b":\x18\xb1\x97\xab\xa9\x0f\xa6\xaf\xf0\xde\xe9\x12\xf0\xc0\x06\x11\x0b\xea\x13",

0 commit comments

Comments
 (0)