style: fix complaining lints & formatters

pull/3686/merge^2
matejcik 2 months ago
parent 3c22a09f9d
commit 5c45151650

@ -21,14 +21,18 @@ use crate::{
trezorhal::model,
ui::{
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,
},
display, 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

@ -18,7 +18,7 @@ from __future__ import annotations
import os
from pathlib import Path
from typing import TYPE_CHECKING, Callable, Generator, Iterator
from typing import TYPE_CHECKING, Generator, Iterator
import pytest
import xdist

@ -99,7 +99,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()
@ -130,7 +130,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