Skip to content

Commit

Permalink
Update boardstubs for v1.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Josverl committed Jul 8, 2024
1 parent f946f09 commit 285e439
Show file tree
Hide file tree
Showing 774 changed files with 1,541 additions and 1,829 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ For an overview of Micropython Stubs please see: https://micropython-stubs.read

Included stubs:
* Merged stubs from `stubs/micropython-v1_21_0-esp32-ESP32_GENERIC-merged`
* Frozen stubs from `stubs/micropython-v1_21_0-frozen/esp32/GENERIC`
* Core stubs from `stubs/micropython-core`


origin | Family | Port | Board | Version
-------|--------|------|-------|--------
Documentation | micropython | - | - | v1.21.0
Core | micropython | esp32 | - | v1.21.0
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Module: '_asyncio' on micropython-v1.21.0-esp32-ESP32_GENERIC
"""

# MCU: {'version': '1.21.0', 'mpy': 'v6.1', 'port': 'esp32', 'board': 'ESP32_GENERIC', 'family': 'micropython', 'build': '', 'arch': 'xtensawin', 'ver': '1.21.0', 'cpu': 'ESP32'}
# Stubber: v1.20.0
# Stubber: v1.23.0
from __future__ import annotations
from _typeshed import Incomplete
from typing import Any, Coroutine, List, Tuple
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ Module: '_espnow' on micropython-v1.21.0-esp32-ESP32_GENERIC
"""

# MCU: {'version': '1.21.0', 'mpy': 'v6.1', 'port': 'esp32', 'board': 'ESP32_GENERIC', 'family': 'micropython', 'build': '', 'arch': 'xtensawin', 'ver': '1.21.0', 'cpu': 'ESP32'}
# Stubber: v1.20.0
# Stubber: v1.23.0
from __future__ import annotations
from _typeshed import Incomplete
from _espnow import ESPNowBase
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union

MAX_DATA_LEN: int = 250
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Module: '_onewire' on micropython-v1.21.0-esp32-ESP32_GENERIC
"""

# MCU: {'version': '1.21.0', 'mpy': 'v6.1', 'port': 'esp32', 'board': 'ESP32_GENERIC', 'family': 'micropython', 'build': '', 'arch': 'xtensawin', 'ver': '1.21.0', 'cpu': 'ESP32'}
# Stubber: v1.20.0
# Stubber: v1.23.0
from __future__ import annotations
from _typeshed import Incomplete

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Module: '_thread' on micropython-v1.21.0-esp32-ESP32_GENERIC
"""

# MCU: {'version': '1.21.0', 'mpy': 'v6.1', 'port': 'esp32', 'board': 'ESP32_GENERIC', 'family': 'micropython', 'build': '', 'arch': 'xtensawin', 'ver': '1.21.0', 'cpu': 'ESP32'}
# Stubber: v1.20.0
# Stubber: v1.23.0
from __future__ import annotations
from _typeshed import Incomplete

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
import espnow
"""
Module: 'aioespnow' on micropython-v1.21.0-esp32-ESP32_GENERIC
"""

# MCU: {'version': '1.21.0', 'mpy': 'v6.1', 'port': 'esp32', 'board': 'ESP32_GENERIC', 'family': 'micropython', 'build': '', 'arch': 'xtensawin', 'ver': '1.21.0', 'cpu': 'ESP32'}
# Stubber: v1.23.0
from __future__ import annotations
from typing import Generator
from _typeshed import Incomplete
from collections.abc import Generator

class AIOESPNow(espnow.ESPNow):
async def arecv(self) -> Generator[Incomplete, None, Incomplete]: ...
async def airecv(self) -> Generator[Incomplete, None, Incomplete]: ...
async def asend(self, mac, msg: Incomplete | None = ..., sync: Incomplete | None = ...) -> Generator[Incomplete, None, Incomplete]: ...
def __aiter__(self): ...
async def __anext__(self): ...
class AIOESPNow:
_data: list = []
_none_tuple: tuple = ()
def recv(self, *args, **kwargs) -> Incomplete: ...
def recvinto(self, *args, **kwargs) -> Incomplete: ...
def peer_count(self, *args, **kwargs) -> Incomplete: ...
def mod_peer(self, *args, **kwargs) -> Incomplete: ...
def irecv(self, *args, **kwargs) -> Incomplete: ...
def set_pmk(self, *args, **kwargs) -> Incomplete: ...
def stats(self, *args, **kwargs) -> Incomplete: ...
def send(self, *args, **kwargs) -> Incomplete: ...
def add_peer(self, *args, **kwargs) -> Incomplete: ...
def config(self, *args, **kwargs) -> Incomplete: ...
def active(self, *args, **kwargs) -> Incomplete: ...
def any(self, *args, **kwargs) -> Incomplete: ...
def get_peers(self, *args, **kwargs) -> Incomplete: ...
def del_peer(self, *args, **kwargs) -> Incomplete: ...
def get_peer(self, *args, **kwargs) -> Incomplete: ...

asend: Generator ## = <generator>
airecv: Generator ## = <generator>
arecv: Generator ## = <generator>
def irq(self, *args, **kwargs) -> Incomplete: ...
def __init__(self, *argv, **kwargs) -> None: ...
21 changes: 18 additions & 3 deletions publish/micropython-v1_21_0-esp32-esp32_generic-stubs/apa106.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
"""
Module: 'apa106' on micropython-v1.21.0-esp32-ESP32_GENERIC
"""

# MCU: {'version': '1.21.0', 'mpy': 'v6.1', 'port': 'esp32', 'board': 'ESP32_GENERIC', 'family': 'micropython', 'build': '', 'arch': 'xtensawin', 'ver': '1.21.0', 'cpu': 'ESP32'}
# Stubber: v1.23.0
from __future__ import annotations
from _typeshed import Incomplete
from neopixel import NeoPixel

class APA106(NeoPixel):
ORDER: Incomplete
class APA106:
ORDER: tuple = ()
def write(self, *args, **kwargs) -> Incomplete: ...
def fill(self, *args, **kwargs) -> Incomplete: ...
def __init__(self, *argv, **kwargs) -> None: ...

class NeoPixel:
ORDER: tuple = ()
def write(self, *args, **kwargs) -> Incomplete: ...
def fill(self, *args, **kwargs) -> Incomplete: ...
def __init__(self, *argv, **kwargs) -> None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Module: 'array' on micropython-v1.21.0-esp32-ESP32_GENERIC
"""

# MCU: {'version': '1.21.0', 'mpy': 'v6.1', 'port': 'esp32', 'board': 'ESP32_GENERIC', 'family': 'micropython', 'build': '', 'arch': 'xtensawin', 'ver': '1.21.0', 'cpu': 'ESP32'}
# Stubber: v1.20.0
# Stubber: v1.23.0
from __future__ import annotations
from _typeshed import Incomplete
from typing import Any, List, Optional
Expand Down
Loading

0 comments on commit 285e439

Please sign in to comment.