-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stubs: Add webassembly firmwarestubs .
Signed-off-by: Jos Verlinde <[email protected]>
- Loading branch information
Showing
81 changed files
with
2,293 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
Module: '_asyncio' on micropython-v1.21.0-webassembly-GENERIC | ||
""" | ||
# MCU: {'family': 'micropython', 'version': '1.21.0', 'build': '', 'ver': 'v1.21.0', 'port': 'webassembly', 'board': 'GENERIC', 'cpu': 'Emscripten', 'mpy': '', 'arch': ''} | ||
# Stubber: v1.15.0 | ||
from typing import Any | ||
from _typeshed import Incomplete | ||
|
||
|
||
class TaskQueue: | ||
def push(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def peek(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def remove(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def pop(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def __init__(self, *argv, **kwargs) -> None: | ||
... | ||
|
||
|
||
class Task: | ||
def __init__(self, *argv, **kwargs) -> None: | ||
... |
11 changes: 11 additions & 0 deletions
11
stubs/micropython-v1_21_0-webassembly-GENERIC/_asyncio.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from _typeshed import Incomplete as Incomplete | ||
|
||
class TaskQueue: | ||
def push(self, *args, **kwargs) -> Incomplete: ... | ||
def peek(self, *args, **kwargs) -> Incomplete: ... | ||
def remove(self, *args, **kwargs) -> Incomplete: ... | ||
def pop(self, *args, **kwargs) -> Incomplete: ... | ||
def __init__(self, *argv, **kwargs) -> None: ... | ||
|
||
class Task: | ||
def __init__(self, *argv, **kwargs) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Module: 'array' on micropython-v1.21.0-webassembly-GENERIC | ||
""" | ||
# MCU: {'family': 'micropython', 'version': '1.21.0', 'build': '', 'ver': 'v1.21.0', 'port': 'webassembly', 'board': 'GENERIC', 'cpu': 'Emscripten', 'mpy': '', 'arch': ''} | ||
# Stubber: v1.15.0 | ||
from typing import Any | ||
from _typeshed import Incomplete | ||
|
||
|
||
class array: | ||
def extend(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def append(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def __init__(self, *argv, **kwargs) -> None: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from _typeshed import Incomplete as Incomplete | ||
|
||
class array: | ||
def extend(self, *args, **kwargs) -> Incomplete: ... | ||
def append(self, *args, **kwargs) -> Incomplete: ... | ||
def __init__(self, *argv, **kwargs) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
""" | ||
Module: 'binascii' on micropython-v1.21.0-webassembly-GENERIC | ||
""" | ||
# MCU: {'family': 'micropython', 'version': '1.21.0', 'build': '', 'ver': 'v1.21.0', 'port': 'webassembly', 'board': 'GENERIC', 'cpu': 'Emscripten', 'mpy': '', 'arch': ''} | ||
# Stubber: v1.15.0 | ||
from typing import Any | ||
from _typeshed import Incomplete | ||
|
||
|
||
def crc32(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def hexlify(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def unhexlify(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def b2a_base64(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def a2b_base64(*args, **kwargs) -> Incomplete: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from _typeshed import Incomplete as Incomplete | ||
|
||
def crc32(*args, **kwargs) -> Incomplete: ... | ||
def hexlify(*args, **kwargs) -> Incomplete: ... | ||
def unhexlify(*args, **kwargs) -> Incomplete: ... | ||
def b2a_base64(*args, **kwargs) -> Incomplete: ... | ||
def a2b_base64(*args, **kwargs) -> Incomplete: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
""" | ||
Module: 'cmath' on micropython-v1.21.0-webassembly-GENERIC | ||
""" | ||
# MCU: {'family': 'micropython', 'version': '1.21.0', 'build': '', 'ver': 'v1.21.0', 'port': 'webassembly', 'board': 'GENERIC', 'cpu': 'Emscripten', 'mpy': '', 'arch': ''} | ||
# Stubber: v1.15.0 | ||
from typing import Any | ||
from _typeshed import Incomplete | ||
|
||
e = 2.718281828459045 # type: float | ||
pi = 3.141592653589793 # type: float | ||
|
||
|
||
def polar(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def sqrt(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def rect(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def sin(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def exp(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def cos(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def phase(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def log(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
def log10(*args, **kwargs) -> Incomplete: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from _typeshed import Incomplete as Incomplete | ||
|
||
e: float | ||
pi: float | ||
|
||
def polar(*args, **kwargs) -> Incomplete: ... | ||
def sqrt(*args, **kwargs) -> Incomplete: ... | ||
def rect(*args, **kwargs) -> Incomplete: ... | ||
def sin(*args, **kwargs) -> Incomplete: ... | ||
def exp(*args, **kwargs) -> Incomplete: ... | ||
def cos(*args, **kwargs) -> Incomplete: ... | ||
def phase(*args, **kwargs) -> Incomplete: ... | ||
def log(*args, **kwargs) -> Incomplete: ... | ||
def log10(*args, **kwargs) -> Incomplete: ... |
61 changes: 61 additions & 0 deletions
61
stubs/micropython-v1_21_0-webassembly-GENERIC/collections.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
""" | ||
Module: 'collections' on micropython-v1.21.0-webassembly-GENERIC | ||
""" | ||
# MCU: {'family': 'micropython', 'version': '1.21.0', 'build': '', 'ver': 'v1.21.0', 'port': 'webassembly', 'board': 'GENERIC', 'cpu': 'Emscripten', 'mpy': '', 'arch': ''} | ||
# Stubber: v1.15.0 | ||
from typing import Any | ||
from _typeshed import Incomplete | ||
|
||
|
||
def namedtuple(*args, **kwargs) -> Incomplete: | ||
... | ||
|
||
|
||
class OrderedDict: | ||
def popitem(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def pop(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def values(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def setdefault(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def update(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def copy(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def clear(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def keys(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def get(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def items(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
@classmethod | ||
def fromkeys(cls, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def __init__(self, *argv, **kwargs) -> None: | ||
... | ||
|
||
|
||
class deque: | ||
def popleft(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def append(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def __init__(self, *argv, **kwargs) -> None: | ||
... |
23 changes: 23 additions & 0 deletions
23
stubs/micropython-v1_21_0-webassembly-GENERIC/collections.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from _typeshed import Incomplete as Incomplete | ||
|
||
def namedtuple(*args, **kwargs) -> Incomplete: ... | ||
|
||
class OrderedDict: | ||
def popitem(self, *args, **kwargs) -> Incomplete: ... | ||
def pop(self, *args, **kwargs) -> Incomplete: ... | ||
def values(self, *args, **kwargs) -> Incomplete: ... | ||
def setdefault(self, *args, **kwargs) -> Incomplete: ... | ||
def update(self, *args, **kwargs) -> Incomplete: ... | ||
def copy(self, *args, **kwargs) -> Incomplete: ... | ||
def clear(self, *args, **kwargs) -> Incomplete: ... | ||
def keys(self, *args, **kwargs) -> Incomplete: ... | ||
def get(self, *args, **kwargs) -> Incomplete: ... | ||
def items(self, *args, **kwargs) -> Incomplete: ... | ||
@classmethod | ||
def fromkeys(cls, *args, **kwargs) -> Incomplete: ... | ||
def __init__(self, *argv, **kwargs) -> None: ... | ||
|
||
class deque: | ||
def popleft(self, *args, **kwargs) -> Incomplete: ... | ||
def append(self, *args, **kwargs) -> Incomplete: ... | ||
def __init__(self, *argv, **kwargs) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
Module: 'deflate' on micropython-v1.21.0-webassembly-GENERIC | ||
""" | ||
# MCU: {'family': 'micropython', 'version': '1.21.0', 'build': '', 'ver': 'v1.21.0', 'port': 'webassembly', 'board': 'GENERIC', 'cpu': 'Emscripten', 'mpy': '', 'arch': ''} | ||
# Stubber: v1.15.0 | ||
from typing import Any | ||
from _typeshed import Incomplete | ||
|
||
GZIP = 3 # type: int | ||
RAW = 1 # type: int | ||
ZLIB = 2 # type: int | ||
AUTO = 0 # type: int | ||
|
||
|
||
class DeflateIO: | ||
def readline(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def readinto(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def read(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def close(self, *args, **kwargs) -> Incomplete: | ||
... | ||
|
||
def __init__(self, *argv, **kwargs) -> None: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from _typeshed import Incomplete as Incomplete | ||
|
||
GZIP: int | ||
RAW: int | ||
ZLIB: int | ||
AUTO: int | ||
|
||
class DeflateIO: | ||
def readline(self, *args, **kwargs) -> Incomplete: ... | ||
def readinto(self, *args, **kwargs) -> Incomplete: ... | ||
def read(self, *args, **kwargs) -> Incomplete: ... | ||
def close(self, *args, **kwargs) -> Incomplete: ... | ||
def __init__(self, *argv, **kwargs) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
""" | ||
Module: 'errno' on micropython-v1.21.0-webassembly-GENERIC | ||
""" | ||
# MCU: {'family': 'micropython', 'version': '1.21.0', 'build': '', 'ver': 'v1.21.0', 'port': 'webassembly', 'board': 'GENERIC', 'cpu': 'Emscripten', 'mpy': '', 'arch': ''} | ||
# Stubber: v1.15.0 | ||
from typing import Any | ||
from _typeshed import Incomplete | ||
|
||
ENOBUFS = 105 # type: int | ||
ENODEV = 19 # type: int | ||
ENOENT = 2 # type: int | ||
EISDIR = 21 # type: int | ||
EIO = 5 # type: int | ||
EINVAL = 22 # type: int | ||
EPERM = 1 # type: int | ||
ETIMEDOUT = 110 # type: int | ||
ENOMEM = 12 # type: int | ||
EOPNOTSUPP = 95 # type: int | ||
ENOTCONN = 107 # type: int | ||
errorcode = {} # type: dict | ||
EAGAIN = 11 # type: int | ||
EALREADY = 114 # type: int | ||
EBADF = 9 # type: int | ||
EADDRINUSE = 98 # type: int | ||
EACCES = 13 # type: int | ||
EINPROGRESS = 115 # type: int | ||
EEXIST = 17 # type: int | ||
EHOSTUNREACH = 113 # type: int | ||
ECONNABORTED = 103 # type: int | ||
ECONNRESET = 104 # type: int | ||
ECONNREFUSED = 111 # type: int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ENOBUFS: int | ||
ENODEV: int | ||
ENOENT: int | ||
EISDIR: int | ||
EIO: int | ||
EINVAL: int | ||
EPERM: int | ||
ETIMEDOUT: int | ||
ENOMEM: int | ||
EOPNOTSUPP: int | ||
ENOTCONN: int | ||
errorcode: dict | ||
EAGAIN: int | ||
EALREADY: int | ||
EBADF: int | ||
EADDRINUSE: int | ||
EACCES: int | ||
EINPROGRESS: int | ||
EEXIST: int | ||
EHOSTUNREACH: int | ||
ECONNABORTED: int | ||
ECONNRESET: int | ||
ECONNREFUSED: int |
Oops, something went wrong.