Skip to content

Commit

Permalink
stubs: Add webassembly firmwarestubs .
Browse files Browse the repository at this point in the history
Signed-off-by: Jos Verlinde <[email protected]>
  • Loading branch information
Josverl committed Dec 4, 2023
1 parent 5e882b7 commit 0b9b89a
Show file tree
Hide file tree
Showing 81 changed files with 2,293 additions and 0 deletions.
29 changes: 29 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/_asyncio.py
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 stubs/micropython-v1_21_0-webassembly-GENERIC/_asyncio.pyi
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: ...
18 changes: 18 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/array.py
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:
...
6 changes: 6 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/array.pyi
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: ...
27 changes: 27 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/binascii.py
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:
...
7 changes: 7 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/binascii.pyi
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: ...
46 changes: 46 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/cmath.py
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:
...
14 changes: 14 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/cmath.pyi
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 stubs/micropython-v1_21_0-webassembly-GENERIC/collections.py
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 stubs/micropython-v1_21_0-webassembly-GENERIC/collections.pyi
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: ...
29 changes: 29 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/deflate.py
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:
...
13 changes: 13 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/deflate.pyi
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: ...
31 changes: 31 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/errno.py
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
23 changes: 23 additions & 0 deletions stubs/micropython-v1_21_0-webassembly-GENERIC/errno.pyi
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
Loading

0 comments on commit 0b9b89a

Please sign in to comment.