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