Skip to content

Commit c2ad743

Browse files
committed
Bypass type error when detecting pyOpenSSL cert
1 parent 1a26557 commit c2ad743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signxml/verifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def verify(
377377
"SignXML received a PyOpenSSL object as x509_cert input. Please pass a Cryptography.X509 object instead.",
378378
DeprecationWarning
379379
)
380-
x509_cert = x509_cert.to_cryptography()
380+
x509_cert = x509_cert.to_cryptography() # type: ignore[union-attr]
381381

382382
if id_attribute is not None:
383383
self.id_attributes = (id_attribute,)

0 commit comments

Comments
 (0)