style: fix complaining lints & formatters

M1nd3r/thp-dealloc
matejcik 6 months ago committed by M1nd3r
parent a0267004d5
commit 4e6ba352ff

@ -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

@ -100,7 +100,7 @@ class InputFlowSetupDevicePINWIpeCode(InputFlowBase):
if self.model() is models.T2B1:
layout = self.debug.read_layout()
if not "PinKeyboard" in layout.all_components():
if "PinKeyboard" not in layout.all_components():
yield from swipe_if_necessary(self.debug) # wipe code info
self.debug.press_yes()
@ -131,7 +131,7 @@ class InputFlowNewCodeMismatch(InputFlowBase):
if self.model() is models.T2B1:
layout = self.debug.read_layout()
if not "PinKeyboard" in layout.all_components():
if "PinKeyboard" not in layout.all_components():
yield from swipe_if_necessary(self.debug) # code info
self.debug.press_yes()

Loading…
Cancel
Save