Skip to content

Commit

Permalink
Bypass type error when detecting pyOpenSSL cert
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Aug 30, 2024
1 parent 1a26557 commit c2ad743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signxml/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,)
Expand Down

0 comments on commit c2ad743

Please sign in to comment.