mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +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())
|
||||
|
||||
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…
Reference in New Issue
Block a user