Skip to content

Commit

Permalink
Fixed mypy error for overloaded variable
Browse files Browse the repository at this point in the history
  • Loading branch information
theeldermillenial committed Oct 11, 2023
1 parent 01230ac commit 143e843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycardano/cip/cip8.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ def sign(
msg.key = cose_key # attach the key to the message

if isinstance(signing_key, ExtendedSigningKey):
message = [
_message = [
msg.phdr_encoded,
msg.uhdr_encoded,
msg.payload,
signing_key.sign(msg._sig_structure),
]

encoded = dumps(
CBORTag(msg.cbor_tag, message), default=msg._custom_cbor_encoder
CBORTag(msg.cbor_tag, _message), default=msg._custom_cbor_encoder
)

else:
Expand Down

0 comments on commit 143e843

Please sign in to comment.