What changed, and why it matters
This is a cosmetic code cleanup. It removes an unnecessary empty keyword-only argument marker from a function signature in documentation and a mock file. There is no functional change to the code that runs on the device.
No action needed. This is a style-only change with no security relevance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit changes the Python-style signature of wait_ble_host_confirmation from def wait_ble_host_confirmation(*,) -> LayoutObj[UiResult]: to def wait_ble_host_confirmation() -> LayoutObj[UiResult]:. This only affects a docstring comment in the Rust module definition and the generated mock stub file. The underlying Rust function binding remains obj_fn_kw!(0, new_wait_ble_host_confirmation), which already accepted zero keyword arguments. No executable logic, parsing, or behavior was altered.
Changed components
core/embed/rust/src/ui/api/firmware_micropython.rscore/mocks/generated/trezorui_api.pyiInspect captured patch +2 / −6
diff --git a/core/embed/rust/src/ui/api/firmware_micropython.rs b/core/embed/rust/src/ui/api/firmware_micropython.rs
index 0ee02479..6a26b7b9 100644
--- a/core/embed/rust/src/ui/api/firmware_micropython.rs
+++ b/core/embed/rust/src/ui/api/firmware_micropython.rs
@@ -2019,9 +2019,7 @@ pub static mp_module_trezorui_api: Module = obj_module! {
/// Returns on BLEEvent::{PairingCanceled, Disconnected}."""
Qstr::MP_QSTR_show_ble_pairing_code => obj_fn_kw!(0, new_show_ble_pairing_code).as_obj(),
- /// def wait_ble_host_confirmation(
- /// *,
- /// ) -> LayoutObj[UiResult]:
+ /// def wait_ble_host_confirmation() -> LayoutObj[UiResult]:
/// """Pairing device: third screen (waiting for host confirmation).
/// Returns on BLEEvent::{PairingCanceled, Disconnected}."""
Qstr::MP_QSTR_wait_ble_host_confirmation => obj_fn_kw!(0, new_wait_ble_host_confirmation).as_obj(),
diff --git a/core/mocks/generated/trezorui_api.pyi b/core/mocks/generated/trezorui_api.pyi
index 7dd9e25e..3af58754 100644
--- a/core/mocks/generated/trezorui_api.pyi
+++ b/core/mocks/generated/trezorui_api.pyi
@@ -667,9 +667,7 @@ def show_ble_pairing_code(
# rust/src/ui/api/firmware_micropython.rs
-def wait_ble_host_confirmation(
- *,
-) -> LayoutObj[UiResult]:
+def wait_ble_host_confirmation() -> LayoutObj[UiResult]:
"""Pairing device: third screen (waiting for host confirmation).
Returns on BLEEvent::{PairingCanceled, Disconnected}."""
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.