1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

core: allow const() values to have Literal type

This commit is contained in:
Martin Milata 2020-09-08 14:29:05 +02:00 committed by Tomas Susanka
parent cd1d5195fd
commit 163ccedb39

View File

@ -1,4 +1,8 @@
def const(c: int) -> int: ...
from typing import TypeVar
C = TypeVar("C", bound=int)
def const(c: C) -> C: ...
def mem_info() -> None: ...
def mem_current() -> int: ...
def mem_total() -> int: ...