1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

core: fix mypy problems

This commit is contained in:
matejcik 2019-10-22 17:01:01 +02:00
parent 9b827baca0
commit a5ccf95260
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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