Josverl / micropython-stubs

Stubs of most MicroPython ports, boards and versions to make writing code that much simpler.
https://micropython-stubs.readthedocs.io
MIT License
157 stars 22 forks source link

onewire.OneWire class missing on v1.22.0+ esp32 #748

Closed Josverl closed 8 months ago

Josverl commented 8 months ago

missing class definition forclass OneWire:`

prior to v1.22.0 the stub was :

from _typeshed import Incomplete

class OneWireError(Exception): ...

class OneWire:
    SEARCH_ROM: int
    MATCH_ROM: int
    SKIP_ROM: int
    pin: Incomplete
    def __init__(self, pin) -> None: ...
    def reset(self, required: bool = ...): ...
    def readbit(self): ...
    def readbyte(self): ...
    def readinto(self, buf) -> None: ...
    def writebit(self, value): ...
    def writebyte(self, value): ...
    def write(self, buf) -> None: ...
    def select_rom(self, rom) -> None: ...
    def scan(self): ...
    def _search_rom(self, l_rom, diff): ...
    def crc8(self, data): ...
Josverl commented 8 months ago

resolved by : https://github.com/Josverl/micropython-stubber/commit/e4032275c4963a0e9ebe18cc4cb4cf93c8298cb0