Skip to content

Commit f7a1625

Browse files
committed
Fix lint error
1 parent b945912 commit f7a1625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unstructured_client/users.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,12 +550,12 @@ def encrypt_secret(
550550
encryption_cert_or_key_pem.encode('utf-8'),
551551
)
552552

553-
public_key = cert.public_key()
553+
public_key = cert.public_key() # type: ignore[assignment]
554554
else:
555555
public_key = serialization.load_pem_public_key(
556556
encryption_cert_or_key_pem.encode('utf-8'),
557557
backend=default_backend()
558-
)
558+
) # type: ignore[assignment]
559559

560560
if not isinstance(public_key, rsa.RSAPublicKey):
561561
raise TypeError("Public key must be a RSA public key for encryption.")

0 commit comments

Comments
 (0)