core: fix mypy problems

pull/632/head
matejcik 5 years ago
parent 9b827baca0
commit a5ccf95260

@ -61,7 +61,7 @@ if __debug__:
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()
await ctx.write(DebugLinkLayout(lines=content))

@ -312,7 +312,7 @@ class RecoveryHomescreen(ui.Component):
if __debug__:
def read_content(self):
def read_content(self) -> List[str]:
return [self.__class__.__name__, self.text, self.subtext or ""]

@ -9,7 +9,7 @@ if __debug__:
from apps.debug import notify_layout_change
if False:
from typing import Any, Awaitable, Generator, Tuple, TypeVar
from typing import Any, Awaitable, Generator, List, Tuple, TypeVar
Pos = Tuple[int, int]
Area = Tuple[int, int, int, int]

@ -4,7 +4,7 @@ from trezor import ui
from trezor.ui import display, in_area
if False:
from typing import List, Type, Union
from typing import List, Optional, Type, Union
class ButtonDefault:

Loading…
Cancel
Save