Skip to content

Commit

Permalink
Stubs updated to patch v1.20.0-3
Browse files Browse the repository at this point in the history
  • Loading branch information
paulober committed Aug 14, 2023
1 parent bff31b6 commit 8e77339
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stubs/stubs/machine/machine.pyi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from umachine import *
from .umachine import *
8 changes: 4 additions & 4 deletions stubs/stubs/umachine/umachine.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
"""
...
Expand Down
2 changes: 1 addition & 1 deletion stubs/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "1.20.0-2"}
{"version": "1.20.0-3"}

0 comments on commit 8e77339

Please sign in to comment.