From 76de53438cf66b33054a7938129f81b0eb33c850 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Fri, 15 Nov 2024 21:54:04 +0100 Subject: [PATCH] style: fix article [no changelog] --- core/embed/rust/src/ui/model_tt/layout.rs | 2 +- core/mocks/generated/trezorui2.pyi | 2 +- core/src/main.py | 2 +- python/src/trezorlib/client.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/embed/rust/src/ui/model_tt/layout.rs b/core/embed/rust/src/ui/model_tt/layout.rs index 46b645d8aa..b754b8accb 100644 --- a/core/embed/rust/src/ui/model_tt/layout.rs +++ b/core/embed/rust/src/ui/model_tt/layout.rs @@ -1718,7 +1718,7 @@ pub static mp_module_trezorui2: Module = obj_module! { /// """Calls drop on contents of the root component.""" /// /// class UiResult: - /// """Result of an UI operation.""" + /// """Result of a UI operation.""" /// pass /// /// mock:global diff --git a/core/mocks/generated/trezorui2.pyi b/core/mocks/generated/trezorui2.pyi index a8d7004cb1..d33c85b7d5 100644 --- a/core/mocks/generated/trezorui2.pyi +++ b/core/mocks/generated/trezorui2.pyi @@ -1147,7 +1147,7 @@ class LayoutObj(Generic[T]): # rust/src/ui/model_tt/layout.rs class UiResult: - """Result of an UI operation.""" + """Result of a UI operation.""" pass CONFIRMED: UiResult CANCELLED: UiResult diff --git a/core/src/main.py b/core/src/main.py index 87eba676ba..f0c9a54b06 100644 --- a/core/src/main.py +++ b/core/src/main.py @@ -29,7 +29,7 @@ if __debug__: # trezor.pin imports trezor.utils # We need it as an always-active module because trezor.pin.show_pin_timeout is used -# as an UI callback for storage, which can be invoked at any time +# as a UI callback for storage, which can be invoked at any time import trezor.pin # noqa: F401 # === Prepare the USB interfaces first. Do not connect to the host yet. diff --git a/python/src/trezorlib/client.py b/python/src/trezorlib/client.py index 7fd6dae32b..2ec853dfd3 100644 --- a/python/src/trezorlib/client.py +++ b/python/src/trezorlib/client.py @@ -100,7 +100,7 @@ class TrezorClient(Generic[UI]): You have to provide a `transport`, i.e., a raw connection to the device. You can use `trezorlib.transport.get_transport` to find one. - You have to provide an UI implementation for the three kinds of interaction: + You have to provide a UI implementation for the three kinds of interaction: - button request (notify the user that their interaction is needed) - PIN request (on T1, ask the user to input numbers for a PIN matrix) - passphrase request (ask the user to enter a passphrase) See `trezorlib.ui` for