Skip to content

Commit 9b2e050

Browse files
committed
Fix countio.Counter.__init__ type hints
1 parent af9f80d commit 9b2e050

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ports/espressif/esp-idf

Submodule esp-idf updated 596 files

shared-bindings/countio/Counter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
//| """Count the number of rising- and/or falling-edge transitions on a given pin.
1515
//| """
1616
//|
17-
//| def __init__(self, pin: microcontroller.Pin, *, edge: Edge = Edge.FALL, pull: Optional[digitalio.Pull]) -> None:
17+
//| def __init__(self, pin: microcontroller.Pin, *, edge: Edge = Edge.FALL, pull: Optional[digitalio.Pull] = None) -> None:
1818
//| """Create a Counter object associated with the given pin that counts
1919
//| rising- and/or falling-edge transitions. At least one of ``rise`` and ``fall`` must be True.
2020
//| The default is to count only falling edges, and is for historical backward compatibility.
2121
//|
2222
//| :param ~microcontroller.Pin pin: pin to monitor
23-
//| :param Edge: which edge transitions to count
24-
//| :param digitalio.Pull: enable a pull-up or pull-down if not None
23+
//| :param Edge edge: which edge transitions to count
24+
//| :param Optional[digitalio.Pull] pull: enable a pull-up or pull-down if not None
2525
//|
2626
//|
2727
//| For example::

0 commit comments

Comments
 (0)