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

chore(core): regenerate trezorui2.pyi

This commit is contained in:
grdddj 2023-05-04 14:53:18 +02:00 committed by Martin Milata
parent 264b92e11c
commit 03913ebf1b

View File

@ -42,8 +42,8 @@ def disable_animation(disable: bool) -> None:
# rust/src/ui/model_tt/layout.rs
def jpeg_info(data: bytes) -> (width: int, height: int, mcu_height: int):
"""Get JPEG image dimensions."""
def jpeg_info(data: bytes) -> tuple[int, int, int]:
"""Get JPEG image dimensions (width: int, height: int, mcu_height: int)."""
# rust/src/ui/model_tt/layout.rs
@ -121,17 +121,6 @@ def confirm_reset_device(
"""Confirm TOS before device setup."""
# rust/src/ui/model_tt/layout.rs
def show_qr(
*,
title: str,
address: str,
verb_cancel: str,
case_sensitive: bool,
) -> object:
"""Show QR code."""
# rust/src/ui/model_tt/layout.rs
def show_address_details(
*,
@ -148,7 +137,7 @@ def show_address_details(
def show_spending_details(
*,
account: str,
fee_rate: str | None = None,
fee_rate: str | None,
) -> object:
"""Show metadata when for outgoing transaction."""
@ -158,8 +147,8 @@ def confirm_value(
*,
title: str,
value: str,
description: str | None = None,
subtitle: str | None = None,
description: str | None,
subtitle: str | None,
verb: str | None = None,
verb_cancel: str | None = None,
info_button: bool = False,
@ -195,6 +184,7 @@ def confirm_modify_fee(
sign: int,
user_fee_change: str,
total_fee_new: str,
fee_rate_amount: str | None,
) -> object:
"""Decrease or increase transaction fee."""
@ -269,8 +259,8 @@ def show_mismatch() -> object:
def show_simple(
*,
title: str | None,
description: str,
button: str | None = None,
description: str = "",
button: str = "",
) -> object:
"""Simple dialog with text and one button."""
@ -384,7 +374,7 @@ def show_checklist(
button: str,
) -> object:
"""Checklist of backup steps. Active index is highlighted, previous items have check
mark nex to them."""
mark next to them."""
# rust/src/ui/model_tt/layout.rs
@ -394,7 +384,7 @@ def confirm_recovery(
description: str,
button: str,
dry_run: bool,
info_button: bool,
info_button: bool = False,
) -> object:
"""Device recovery homescreen."""
@ -403,7 +393,7 @@ def confirm_recovery(
def select_word_count(
*,
dry_run: bool,
) -> int | CANCELLED:
) -> int | str: # TT returns int
"""Select mnemonic word count from (12, 18, 20, 24, 33)."""
@ -428,11 +418,11 @@ def show_progress(
*,
title: str,
indeterminate: bool = False,
description: str | None = None,
description: str = "",
) -> object:
"""Show progress loader. Please note that the number of lines reserved on screen for
description is determined at construction time. If you want multiline descriptions
make sure the initial desciption has at least that amount of lines."""
make sure the initial description has at least that amount of lines."""
# rust/src/ui/model_tt/layout.rs