mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-09 16:18:10 +00:00
core: fix mypy problems
This commit is contained in:
parent
9b827baca0
commit
a5ccf95260
@ -61,7 +61,7 @@ if __debug__:
|
|||||||
|
|
||||||
loop.schedule(debuglink_decision_dispatcher())
|
loop.schedule(debuglink_decision_dispatcher())
|
||||||
|
|
||||||
async def return_layout_change(ctx: wire.Context):
|
async def return_layout_change(ctx: wire.Context) -> None:
|
||||||
content = await layout_change_chan.take()
|
content = await layout_change_chan.take()
|
||||||
await ctx.write(DebugLinkLayout(lines=content))
|
await ctx.write(DebugLinkLayout(lines=content))
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ class RecoveryHomescreen(ui.Component):
|
|||||||
|
|
||||||
if __debug__:
|
if __debug__:
|
||||||
|
|
||||||
def read_content(self):
|
def read_content(self) -> List[str]:
|
||||||
return [self.__class__.__name__, self.text, self.subtext or ""]
|
return [self.__class__.__name__, self.text, self.subtext or ""]
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ if __debug__:
|
|||||||
from apps.debug import notify_layout_change
|
from apps.debug import notify_layout_change
|
||||||
|
|
||||||
if False:
|
if False:
|
||||||
from typing import Any, Awaitable, Generator, Tuple, TypeVar
|
from typing import Any, Awaitable, Generator, List, Tuple, TypeVar
|
||||||
|
|
||||||
Pos = Tuple[int, int]
|
Pos = Tuple[int, int]
|
||||||
Area = Tuple[int, int, int, int]
|
Area = Tuple[int, int, int, int]
|
||||||
|
@ -4,7 +4,7 @@ from trezor import ui
|
|||||||
from trezor.ui import display, in_area
|
from trezor.ui import display, in_area
|
||||||
|
|
||||||
if False:
|
if False:
|
||||||
from typing import List, Type, Union
|
from typing import List, Optional, Type, Union
|
||||||
|
|
||||||
|
|
||||||
class ButtonDefault:
|
class ButtonDefault:
|
||||||
|
Loading…
Reference in New Issue
Block a user