1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 22:18:13 +00:00

fix: remove unused ignores

This commit is contained in:
M1nd3r 2024-11-19 13:57:11 +01:00
parent 56e6c45875
commit e48728ac5e

View File

@ -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(