Skip to content

Commit

Permalink
Add windows firmware stubs.
Browse files Browse the repository at this point in the history
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
  • Loading branch information
Josverl committed Dec 4, 2023
1 parent 6ff6229 commit 4944f75
Show file tree
Hide file tree
Showing 223 changed files with 6,879 additions and 0 deletions.
18 changes: 18 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/array.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Module: 'array' on micropython-v1.20.0-win32-GENERIC
"""
# MCU: {'version': '1.20.0', 'mpy': '', 'port': 'win32', 'board': 'GENERIC', 'family': 'micropython', 'build': '', 'arch': '', 'ver': 'v1.20.0', 'cpu': ''}
# 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_20_0-windows-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_20_0-windows-GENERIC/binascii.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""
Module: 'binascii' on micropython-v1.20.0-win32-GENERIC
"""
# MCU: {'version': '1.20.0', 'mpy': '', 'port': 'win32', 'board': 'GENERIC', 'family': 'micropython', 'build': '', 'arch': '', 'ver': 'v1.20.0', 'cpu': ''}
# 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_20_0-windows-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_20_0-windows-GENERIC/cmath.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
"""
Module: 'cmath' on micropython-v1.20.0-win32-GENERIC
"""
# MCU: {'version': '1.20.0', 'mpy': '', 'port': 'win32', 'board': 'GENERIC', 'family': 'micropython', 'build': '', 'arch': '', 'ver': 'v1.20.0', 'cpu': ''}
# 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_20_0-windows-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_20_0-windows-GENERIC/collections.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
"""
Module: 'collections' on micropython-v1.20.0-win32-GENERIC
"""
# MCU: {'version': '1.20.0', 'mpy': '', 'port': 'win32', 'board': 'GENERIC', 'family': 'micropython', 'build': '', 'arch': '', 'ver': 'v1.20.0', 'cpu': ''}
# 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_20_0-windows-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: ...
31 changes: 31 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/errno.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"""
Module: 'errno' on micropython-v1.20.0-win32-GENERIC
"""
# MCU: {'version': '1.20.0', 'mpy': '', 'port': 'win32', 'board': 'GENERIC', 'family': 'micropython', 'build': '', 'arch': '', 'ver': 'v1.20.0', 'cpu': ''}
# Stubber: v1.15.0
from typing import Any
from _typeshed import Incomplete

ENOBUFS = 119 # 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 = 138 # type: int
ENOMEM = 12 # type: int
EOPNOTSUPP = 130 # type: int
ENOTCONN = 126 # type: int
errorcode = {} # type: dict
EAGAIN = 11 # type: int
EALREADY = 103 # type: int
EBADF = 9 # type: int
EADDRINUSE = 100 # type: int
EACCES = 13 # type: int
EINPROGRESS = 112 # type: int
EEXIST = 17 # type: int
EHOSTUNREACH = 110 # type: int
ECONNABORTED = 106 # type: int
ECONNRESET = 108 # type: int
ECONNREFUSED = 107 # type: int
25 changes: 25 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/errno.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from _typeshed import Incomplete as Incomplete

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
35 changes: 35 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/gc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""
Module: 'gc' on micropython-v1.20.0-win32-GENERIC
"""
# MCU: {'version': '1.20.0', 'mpy': '', 'port': 'win32', 'board': 'GENERIC', 'family': 'micropython', 'build': '', 'arch': '', 'ver': 'v1.20.0', 'cpu': ''}
# Stubber: v1.15.0
from typing import Any
from _typeshed import Incomplete


def mem_alloc(*args, **kwargs) -> Incomplete:
...


def isenabled(*args, **kwargs) -> Incomplete:
...


def mem_free(*args, **kwargs) -> Incomplete:
...


def threshold(*args, **kwargs) -> Incomplete:
...


def collect(*args, **kwargs) -> Incomplete:
...


def enable(*args, **kwargs) -> Incomplete:
...


def disable(*args, **kwargs) -> Incomplete:
...
9 changes: 9 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/gc.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from _typeshed import Incomplete as Incomplete

def mem_alloc(*args, **kwargs) -> Incomplete: ...
def isenabled(*args, **kwargs) -> Incomplete: ...
def mem_free(*args, **kwargs) -> Incomplete: ...
def threshold(*args, **kwargs) -> Incomplete: ...
def collect(*args, **kwargs) -> Incomplete: ...
def enable(*args, **kwargs) -> Incomplete: ...
def disable(*args, **kwargs) -> Incomplete: ...
18 changes: 18 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/hashlib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Module: 'hashlib' on micropython-v1.20.0-win32-GENERIC
"""
# MCU: {'version': '1.20.0', 'mpy': '', 'port': 'win32', 'board': 'GENERIC', 'family': 'micropython', 'build': '', 'arch': '', 'ver': 'v1.20.0', 'cpu': ''}
# Stubber: v1.15.0
from typing import Any
from _typeshed import Incomplete


class sha256:
def digest(self, *args, **kwargs) -> Incomplete:
...

def update(self, *args, **kwargs) -> Incomplete:
...

def __init__(self, *argv, **kwargs) -> None:
...
6 changes: 6 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/hashlib.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from _typeshed import Incomplete as Incomplete

class sha256:
def digest(self, *args, **kwargs) -> Incomplete: ...
def update(self, *args, **kwargs) -> Incomplete: ...
def __init__(self, *argv, **kwargs) -> None: ...
19 changes: 19 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/heapq.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""
Module: 'heapq' on micropython-v1.20.0-win32-GENERIC
"""
# MCU: {'version': '1.20.0', 'mpy': '', 'port': 'win32', 'board': 'GENERIC', 'family': 'micropython', 'build': '', 'arch': '', 'ver': 'v1.20.0', 'cpu': ''}
# Stubber: v1.15.0
from typing import Any
from _typeshed import Incomplete


def heappop(*args, **kwargs) -> Incomplete:
...


def heappush(*args, **kwargs) -> Incomplete:
...


def heapify(*args, **kwargs) -> Incomplete:
...
5 changes: 5 additions & 0 deletions stubs/micropython-v1_20_0-windows-GENERIC/heapq.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from _typeshed import Incomplete as Incomplete

def heappop(*args, **kwargs) -> Incomplete: ...
def heappush(*args, **kwargs) -> Incomplete: ...
def heapify(*args, **kwargs) -> Incomplete: ...
Loading

0 comments on commit 4944f75

Please sign in to comment.