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:
parent
cd1d5195fd
commit
163ccedb39
@ -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: ...
|
||||
|
Loading…
Reference in New Issue
Block a user