1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-20 06:28:09 +00:00

fix(python): remove unused type ignore after click version bump

[no changelog]
This commit is contained in:
M1nd3r 2024-11-19 10:10:17 +01:00 committed by Petr Sedláček
parent 9bd6e760da
commit 2ef0071611

View File

@ -156,9 +156,7 @@ def with_client(func: "Callable[Concatenate[TrezorClient, P], R]") -> "Callable[
except Exception: except Exception:
pass pass
# the return type of @click.pass_obj is improperly specified and pyright doesn't return trezorctl_command_with_client
# understand that it converts f(obj, *args, **kwargs) to f(*args, **kwargs)
return trezorctl_command_with_client # type: ignore [is incompatible with return type]
class AliasedGroup(click.Group): class AliasedGroup(click.Group):