1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00

core/rust: Rust API arguments changes

This commit is contained in:
grdddj 2023-04-10 16:08:00 +02:00
parent 554c4e5530
commit 59879b8bcb
2 changed files with 10 additions and 10 deletions

View File

@ -1674,7 +1674,7 @@ pub static mp_module_trezorui2: Module = obj_module! {
/// *,
/// title: str,
/// value: str,
/// description: str | None = None,
/// description: str | None,
/// subtitle: str | None = None,
/// verb: str | None = None,
/// verb_cancel: str | None = None,
@ -1777,8 +1777,8 @@ pub static mp_module_trezorui2: Module = obj_module! {
/// def show_simple(
/// *,
/// title: str | None,
/// description: str,
/// button: str | None = None,
/// description: str = "",
/// button: str = "",
/// ) -> object:
/// """Simple dialog with text and one button."""
Qstr::MP_QSTR_show_simple => obj_fn_kw!(0, new_show_simple).as_obj(),
@ -1890,7 +1890,7 @@ pub static mp_module_trezorui2: Module = obj_module! {
/// description: str,
/// button: str,
/// dry_run: bool,
/// info_button: bool,
/// info_button: bool = False,
/// ) -> object:
/// """Device recovery homescreen."""
Qstr::MP_QSTR_confirm_recovery => obj_fn_kw!(0, new_confirm_recovery).as_obj(),
@ -1920,7 +1920,7 @@ pub static mp_module_trezorui2: Module = obj_module! {
/// *,
/// 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

View File

@ -147,7 +147,7 @@ def confirm_value(
*,
title: str,
value: str,
description: str | None = None,
description: str | None,
subtitle: str | None = None,
verb: str | None = None,
verb_cancel: str | None = None,
@ -259,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 +384,7 @@ def confirm_recovery(
description: str,
button: str,
dry_run: bool,
info_button: bool,
info_button: bool = False,
) -> object:
"""Device recovery homescreen."""
@ -418,7 +418,7 @@ 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