Skip to content

Commit 56b8871

Browse files
committed
style(encypher-ai): add type annotation to fix mypy hash_alg assignment
1 parent 1ad1158 commit 56b8871

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

encypher/core/signing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _sign_with_key(key: SigningKey, data: bytes) -> bytes:
7373
if isinstance(key, ec.EllipticCurvePrivateKey):
7474
curve = key.curve
7575
if isinstance(curve, ec.SECP256R1):
76-
hash_alg = hashes.SHA256()
76+
hash_alg: hashes.HashAlgorithm = hashes.SHA256()
7777
elif isinstance(curve, ec.SECP384R1):
7878
hash_alg = hashes.SHA384()
7979
elif isinstance(curve, ec.SECP521R1):

0 commit comments

Comments
 (0)