From c2ad743f07c5c3830f91b25ef8ecd73fa26e31c4 Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Fri, 30 Aug 2024 08:55:59 -0700 Subject: [PATCH] Bypass type error when detecting pyOpenSSL cert --- signxml/verifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signxml/verifier.py b/signxml/verifier.py index 156e579..10c1ef6 100644 --- a/signxml/verifier.py +++ b/signxml/verifier.py @@ -377,7 +377,7 @@ def verify( "SignXML received a PyOpenSSL object as x509_cert input. Please pass a Cryptography.X509 object instead.", DeprecationWarning ) - x509_cert = x509_cert.to_cryptography() + x509_cert = x509_cert.to_cryptography() # type: ignore[union-attr] if id_attribute is not None: self.id_attributes = (id_attribute,)