Micropython project base

This commit is contained in:
Ádám Kovács
2023-11-10 15:09:19 +01:00
parent 25215733a6
commit 8aa7fb473b
171 changed files with 23640 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
from .core import *
from _typeshed import Incomplete
__version__: Incomplete
_attrs: Incomplete
def __getattr__(attr): ...

52
.vscode/Pico-W-Stub/asyncio/core.pyi vendored Normal file
View File

@@ -0,0 +1,52 @@
from .task import Task as Task, TaskQueue as TaskQueue
from _typeshed import Incomplete
class CancelledError(BaseException): ...
class TimeoutError(Exception): ...
_exc_context: Incomplete
class SingletonGenerator:
state: Incomplete
exc: Incomplete
def __init__(self) -> None: ...
def __iter__(self): ...
def __next__(self) -> None: ...
def sleep_ms(t, sgen=...): ...
def sleep(t): ...
class IOQueue:
poller: Incomplete
map: Incomplete
def __init__(self) -> None: ...
def _enqueue(self, s, idx) -> None: ...
def _dequeue(self, s) -> None: ...
def queue_read(self, s) -> None: ...
def queue_write(self, s) -> None: ...
def remove(self, task) -> None: ...
def wait_io_event(self, dt) -> None: ...
def _promote_to_task(aw): ...
def create_task(coro): ...
def run_until_complete(main_task: Incomplete | None = ...): ...
def run(coro): ...
async def _stopper() -> None: ...
_stop_task: Incomplete
class Loop:
_exc_handler: Incomplete
def create_task(coro): ...
def run_forever() -> None: ...
def run_until_complete(aw): ...
def stop() -> None: ...
def close() -> None: ...
def set_exception_handler(handler) -> None: ...
def get_exception_handler(): ...
def default_exception_handler(loop, context) -> None: ...
def call_exception_handler(context) -> None: ...
def get_event_loop(runq_len: int = ..., waitq_len: int = ...): ...
def current_task(): ...
def new_event_loop(): ...

21
.vscode/Pico-W-Stub/asyncio/event.pyi vendored Normal file
View File

@@ -0,0 +1,21 @@
import io
from . import core as core
from _typeshed import Incomplete
from collections.abc import Generator
class Event:
state: bool
waiting: Incomplete
def __init__(self) -> None: ...
def is_set(self): ...
def set(self) -> None: ...
def clear(self) -> None: ...
def wait(self) -> Generator[None, None, Incomplete]: ...
class ThreadSafeFlag(io.IOBase):
state: int
def __init__(self) -> None: ...
def ioctl(self, req, flags): ...
def set(self) -> None: ...
def clear(self) -> None: ...
async def wait(self) -> Generator[Incomplete, None, None]: ...

13
.vscode/Pico-W-Stub/asyncio/funcs.pyi vendored Normal file
View File

@@ -0,0 +1,13 @@
from . import core as core
from _typeshed import Incomplete
from collections.abc import Generator
async def _run(waiter, aw) -> None: ...
async def wait_for(aw, timeout, sleep=...): ...
def wait_for_ms(aw, timeout): ...
class _Remove:
@staticmethod
def remove(t) -> None: ...
def gather(*aws, return_exceptions: bool = ...) -> Generator[None, None, Incomplete]: ...

13
.vscode/Pico-W-Stub/asyncio/lock.pyi vendored Normal file
View File

@@ -0,0 +1,13 @@
from . import core as core
from _typeshed import Incomplete
from collections.abc import Generator
class Lock:
state: int
waiting: Incomplete
def __init__(self) -> None: ...
def locked(self): ...
def release(self) -> None: ...
def acquire(self) -> Generator[None, None, Incomplete]: ...
async def __aenter__(self): ...
async def __aexit__(self, exc_type, exc, tb): ...

36
.vscode/Pico-W-Stub/asyncio/stream.pyi vendored Normal file
View File

@@ -0,0 +1,36 @@
from . import core as core
from _typeshed import Incomplete
from collections.abc import Generator
class Stream:
s: Incomplete
e: Incomplete
out_buf: bytes
def __init__(self, s, e=...) -> None: ...
def get_extra_info(self, v): ...
async def __aenter__(self): ...
async def __aexit__(self, exc_type, exc, tb) -> None: ...
def close(self) -> None: ...
async def wait_closed(self) -> None: ...
def read(self, n: int = ...) -> Generator[Incomplete, None, Incomplete]: ...
def readinto(self, buf) -> Generator[Incomplete, None, Incomplete]: ...
def readexactly(self, n) -> Generator[Incomplete, None, Incomplete]: ...
def readline(self) -> Generator[Incomplete, None, Incomplete]: ...
def write(self, buf) -> None: ...
def drain(self) -> Generator[Incomplete, None, Incomplete]: ...
StreamReader = Stream
StreamWriter = Stream
def open_connection(host, port) -> Generator[Incomplete, None, Incomplete]: ...
class Server:
async def __aenter__(self): ...
async def __aexit__(self, exc_type, exc, tb) -> None: ...
state: bool
def close(self) -> None: ...
async def wait_closed(self) -> None: ...
async def _serve(self, s, cb) -> Generator[Incomplete, None, None]: ...
async def start_server(cb, host, port, backlog: int = ...): ...
async def stream_awrite(self, buf, off: int = ..., sz: int = ...) -> None: ...