1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 12:58:13 +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 # rust/src/ui/model_tt/layout.rs
def jpeg_info(data: bytes) -> (width: int, height: int, mcu_height: int): def jpeg_info(data: bytes) -> tuple[int, int, int]:
"""Get JPEG image dimensions.""" """Get JPEG image dimensions (width: int, height: int, mcu_height: int)."""
# rust/src/ui/model_tt/layout.rs # rust/src/ui/model_tt/layout.rs
@ -121,17 +121,6 @@ def confirm_reset_device(
"""Confirm TOS before device setup.""" """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 # rust/src/ui/model_tt/layout.rs
def show_address_details( def show_address_details(
*, *,
@ -148,7 +137,7 @@ def show_address_details(
def show_spending_details( def show_spending_details(
*, *,
account: str, account: str,
fee_rate: str | None = None, fee_rate: str | None,
) -> object: ) -> object:
"""Show metadata when for outgoing transaction.""" """Show metadata when for outgoing transaction."""
@ -158,8 +147,8 @@ def confirm_value(
*, *,
title: str, title: str,
value: str, value: str,
description: str | None = None, description: str | None,
subtitle: str | None = None, subtitle: str | None,
verb: str | None = None, verb: str | None = None,
verb_cancel: str | None = None, verb_cancel: str | None = None,
info_button: bool = False, info_button: bool = False,
@ -195,6 +184,7 @@ def confirm_modify_fee(
sign: int, sign: int,
user_fee_change: str, user_fee_change: str,
total_fee_new: str, total_fee_new: str,
fee_rate_amount: str | None,
) -> object: ) -> object:
"""Decrease or increase transaction fee.""" """Decrease or increase transaction fee."""
@ -269,8 +259,8 @@ def show_mismatch() -> object:
def show_simple( def show_simple(
*, *,
title: str | None, title: str | None,
description: str, description: str = "",
button: str | None = None, button: str = "",
) -> object: ) -> object:
"""Simple dialog with text and one button.""" """Simple dialog with text and one button."""
@ -384,7 +374,7 @@ def show_checklist(
button: str, button: str,
) -> object: ) -> object:
"""Checklist of backup steps. Active index is highlighted, previous items have check """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 # rust/src/ui/model_tt/layout.rs
@ -394,7 +384,7 @@ def confirm_recovery(
description: str, description: str,
button: str, button: str,
dry_run: bool, dry_run: bool,
info_button: bool, info_button: bool = False,
) -> object: ) -> object:
"""Device recovery homescreen.""" """Device recovery homescreen."""
@ -403,7 +393,7 @@ def confirm_recovery(
def select_word_count( def select_word_count(
*, *,
dry_run: bool, dry_run: bool,
) -> int | CANCELLED: ) -> int | str: # TT returns int
"""Select mnemonic word count from (12, 18, 20, 24, 33).""" """Select mnemonic word count from (12, 18, 20, 24, 33)."""
@ -428,11 +418,11 @@ def show_progress(
*, *,
title: str, title: str,
indeterminate: bool = False, indeterminate: bool = False,
description: str | None = None, description: str = "",
) -> object: ) -> object:
"""Show progress loader. Please note that the number of lines reserved on screen for """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 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 # rust/src/ui/model_tt/layout.rs