Skip to content

Commit 143e843

Browse files
Fixed mypy error for overloaded variable
1 parent 01230ac commit 143e843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycardano/cip/cip8.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ def sign(
9292
msg.key = cose_key # attach the key to the message
9393

9494
if isinstance(signing_key, ExtendedSigningKey):
95-
message = [
95+
_message = [
9696
msg.phdr_encoded,
9797
msg.uhdr_encoded,
9898
msg.payload,
9999
signing_key.sign(msg._sig_structure),
100100
]
101101

102102
encoded = dumps(
103-
CBORTag(msg.cbor_tag, message), default=msg._custom_cbor_encoder
103+
CBORTag(msg.cbor_tag, _message), default=msg._custom_cbor_encoder
104104
)
105105

106106
else:

0 commit comments

Comments
 (0)