From fec05d247d50fc80faac13b0b182b18a7d9141ae Mon Sep 17 00:00:00 2001 From: Boris Oncev Date: Thu, 14 Nov 2024 18:00:51 +0100 Subject: [PATCH] fix CI pipeline warning --- core/src/apps/mintlayer/sign_tx/signer.py | 2 +- python/src/trezorlib/cli/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/apps/mintlayer/sign_tx/signer.py b/core/src/apps/mintlayer/sign_tx/signer.py index c95bb4301..6b5e3345f 100644 --- a/core/src/apps/mintlayer/sign_tx/signer.py +++ b/core/src/apps/mintlayer/sign_tx/signer.py @@ -158,7 +158,7 @@ def __init__( self.chunkify = tx.chunkify or False self.tx_req = MintlayerTxRequest() self.tx_req.details = MintlayerTxRequestDetailsType() - self.tx_req.serialized = [] + self.tx_req.serialized = None # The digest of the presigned external inputs streamed for approval in Step 1. This is # used to ensure that the inputs streamed for verification in Step 3 are the same as diff --git a/python/src/trezorlib/cli/__init__.py b/python/src/trezorlib/cli/__init__.py index 050e3788f..d95385854 100644 --- a/python/src/trezorlib/cli/__init__.py +++ b/python/src/trezorlib/cli/__init__.py @@ -158,7 +158,7 @@ def trezorctl_command_with_client( # the return type of @click.pass_obj is improperly specified and pyright doesn't # understand that it converts f(obj, *args, **kwargs) to f(*args, **kwargs) - return trezorctl_command_with_client # type: ignore [is incompatible with return type] + return trezorctl_command_with_client class AliasedGroup(click.Group):