Skip to content

Commit c7e39c4

Browse files
fix: change PinReadMessage and PinListenEvent value type to bool (#11)
1 parent 31f4885 commit c7e39c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wokwi_client/pins.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# SPDX-License-Identifier: MIT
1313

14-
from typing import TypedDict, Union
14+
from typing import TypedDict
1515

1616
from wokwi_client.protocol_types import ResponseMessage
1717

@@ -21,7 +21,7 @@
2121
class PinReadMessage(TypedDict):
2222
pin: str
2323
direction: str
24-
value: Union[float, int, bool]
24+
value: bool
2525
pullUp: bool
2626
pullDown: bool
2727

@@ -30,7 +30,7 @@ class PinListenEvent(TypedDict):
3030
part: str
3131
pin: str
3232
direction: str
33-
value: Union[float, int, bool]
33+
value: bool
3434
pullUp: bool
3535
pullDown: bool
3636

0 commit comments

Comments
 (0)