From 369f5c89fbb2bc99eeab42c92a75ca2d3ce452b3 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Tue, 19 Nov 2024 13:57:11 +0100 Subject: [PATCH] fix: remove unused ignores --- python/src/trezorlib/cli/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/python/src/trezorlib/cli/__init__.py b/python/src/trezorlib/cli/__init__.py index b9fb7b8985..951d0f4a5b 100644 --- a/python/src/trezorlib/cli/__init__.py +++ b/python/src/trezorlib/cli/__init__.py @@ -306,9 +306,7 @@ def with_session( pass # TODO try end session if not resumed - # 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 function_with_session # type: ignore [is incompatible with return type] + return function_with_session def with_management_session( @@ -327,9 +325,7 @@ def with_management_session( pass # TODO try end session if not resumed - # 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 function_with_management_session # type: ignore [is incompatible with return type] + return function_with_management_session def with_client(