parent
f5299456a9
commit
3af75c0b8b
@ -0,0 +1,8 @@
|
||||
from typing import *
|
||||
|
||||
|
||||
# extmod/modtrezorcrypto/modtrezorcrypto-crc.h
|
||||
def crc32(data: bytes, crc: int = 0) -> int:
|
||||
"""
|
||||
Computes a CRC32 checksum of `data`.
|
||||
"""
|
@ -1,5 +1,7 @@
|
||||
def const(c):
|
||||
def const(c: int) -> int:
|
||||
return c
|
||||
|
||||
def mem_info() -> None: ...
|
||||
def mem_current() -> int: ...
|
||||
def mem_total() -> int: ...
|
||||
def mem_peak() -> int: ...
|
@ -1,69 +0,0 @@
|
||||
__names_get = [
|
||||
'AbstractSet',
|
||||
'AsyncIterable',
|
||||
'AsyncIterator',
|
||||
'Awaitable',
|
||||
'ByteString',
|
||||
'Callable',
|
||||
'Container',
|
||||
'DefaultDict',
|
||||
'Dict',
|
||||
'Generator',
|
||||
'Generic',
|
||||
'ItemsView',
|
||||
'Iterable',
|
||||
'Iterator',
|
||||
'KeysView',
|
||||
'List',
|
||||
'Mapping',
|
||||
'MappingView',
|
||||
'MutableMapping',
|
||||
'MutableSequence',
|
||||
'MutableSet',
|
||||
'Optional',
|
||||
'Reversible',
|
||||
'Sequence',
|
||||
'Set',
|
||||
'Tuple',
|
||||
'Type',
|
||||
'Union',
|
||||
'ValuesView',
|
||||
]
|
||||
|
||||
__names_obj = [
|
||||
'Any',
|
||||
'AnyStr',
|
||||
'Hashable',
|
||||
'Sized',
|
||||
'SupportsAbs',
|
||||
'SupportsFloat',
|
||||
'SupportsInt',
|
||||
'SupportsRound',
|
||||
'Text',
|
||||
]
|
||||
|
||||
|
||||
class __dummy:
|
||||
|
||||
def __getitem__(self, *args):
|
||||
return object
|
||||
|
||||
|
||||
__t = __dummy()
|
||||
|
||||
for __n in __names_get:
|
||||
globals()[__n] = __t
|
||||
|
||||
for __n in __names_obj:
|
||||
globals()[__n] = object
|
||||
|
||||
|
||||
def TypeVar(*args):
|
||||
return object
|
||||
|
||||
|
||||
def NewType(*args):
|
||||
return lambda x: x
|
||||
|
||||
|
||||
TYPE_CHECKING = False
|
@ -0,0 +1 @@
|
||||
def getenv(env: str) -> str: ...
|
Loading…
Reference in new issue