diff --git a/stubs/stubs/machine/machine.pyi b/stubs/stubs/machine/machine.pyi index 8825688..aa14ad4 100644 --- a/stubs/stubs/machine/machine.pyi +++ b/stubs/stubs/machine/machine.pyi @@ -1 +1 @@ -from umachine import * +from .umachine import * diff --git a/stubs/stubs/umachine/umachine.pyi b/stubs/stubs/umachine/umachine.pyi index 8e3440a..491be5b 100644 --- a/stubs/stubs/umachine/umachine.pyi +++ b/stubs/stubs/umachine/umachine.pyi @@ -30,7 +30,7 @@ Descriptions taken from """ from collections.abc import Callable, Sequence from typing import overload, NoReturn -from typing import ClassVar, Any +from typing import ClassVar, Any, Literal class ADC: @@ -313,13 +313,13 @@ with `Pin.IN`, `Pin.OUT`, or `Pin.OPEN_DRAIN`, the alternate function will be re """ ... - def value(self, value: Any=..., /) -> None: + def value(self, value: Any=..., /) -> Literal[0, 1] | None: """ Get or set the digital logic level of the pin: - With no argument, return 0 or 1 depending on the logic level of the pin. - - With ``value`` given, set the logic level of the pin. ``value`` can be - anything that converts to a boolean. If it converts to ``True``, the pin + - With ``value`` given, set the logic level of the pin. `value` can be + anything that converts to a boolean. If it converts to `True`, the pin is set high, otherwise it is set low. """ ... diff --git a/stubs/version.json b/stubs/version.json index 67c3c5d..66e5555 100644 --- a/stubs/version.json +++ b/stubs/version.json @@ -1 +1 @@ -{"version": "1.20.0-2"} \ No newline at end of file +{"version": "1.20.0-3"} \ No newline at end of file