mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 11:58:13 +00:00
style: fix complaining lints & formatters
This commit is contained in:
parent
577c36614e
commit
11ae7a92ab
@ -32,14 +32,18 @@ use crate::{
|
||||
ui::{
|
||||
backlight::BACKLIGHT_LEVELS_OBJ,
|
||||
component::{
|
||||
base::Component, connect::Connect, paginated::{PageMsg, Paginate}, text::{
|
||||
base::Component,
|
||||
connect::Connect,
|
||||
paginated::{PageMsg, Paginate},
|
||||
text::{
|
||||
op::OpTextLayout,
|
||||
paragraphs::{
|
||||
Checklist, Paragraph, ParagraphSource, ParagraphVecLong, ParagraphVecShort,
|
||||
Paragraphs, VecExt,
|
||||
},
|
||||
TextStyle,
|
||||
}, ComponentExt, FormattedText, Label, LineBreaking, Never, Timeout
|
||||
},
|
||||
ComponentExt, FormattedText, Label, LineBreaking, Never, Timeout,
|
||||
},
|
||||
geometry,
|
||||
layout::{
|
||||
|
@ -67,8 +67,7 @@ if TYPE_CHECKING:
|
||||
self,
|
||||
hold_ms: Optional[int] = None,
|
||||
wait: Optional[bool] = None,
|
||||
) -> "LayoutContent":
|
||||
...
|
||||
) -> "LayoutContent": ...
|
||||
|
||||
|
||||
EXPECTED_RESPONSES_CONTEXT_LINES = 3
|
||||
|
@ -96,8 +96,10 @@ class InputFlowSetupDevicePINWIpeCode(InputFlowBase):
|
||||
self.debug.press_yes()
|
||||
|
||||
if self.client.layout_type is LayoutType.TR:
|
||||
yield from swipe_if_necessary(self.debug) # wipe code info
|
||||
self.debug.press_yes()
|
||||
layout = self.debug.read_layout()
|
||||
if "PinKeyboard" not in layout.all_components():
|
||||
yield from swipe_if_necessary(self.debug) # wipe code info
|
||||
self.debug.press_yes()
|
||||
|
||||
yield # enter current pin
|
||||
self.debug.input(self.pin)
|
||||
@ -127,8 +129,10 @@ class InputFlowNewCodeMismatch(InputFlowBase):
|
||||
self.debug.press_yes()
|
||||
|
||||
if self.client.layout_type is LayoutType.TR:
|
||||
yield from swipe_if_necessary(self.debug) # code info
|
||||
self.debug.press_yes()
|
||||
layout = self.debug.read_layout()
|
||||
if "PinKeyboard" not in layout.all_components():
|
||||
yield from swipe_if_necessary(self.debug) # code info
|
||||
self.debug.press_yes()
|
||||
|
||||
def input_two_different_pins() -> BRGeneratorType:
|
||||
yield from self.PIN.setup_new_pin(
|
||||
|
Loading…
Reference in New Issue
Block a user