From 2f7d54a98d5428554e5e477337825511563ad230 Mon Sep 17 00:00:00 2001 From: Jakub Andrysek Date: Mon, 25 Aug 2025 12:24:50 +0200 Subject: [PATCH] refactor: change PinReadMessage and PinListenEvent value type to bool --- src/wokwi_client/pins.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wokwi_client/pins.py b/src/wokwi_client/pins.py index aa4c79b..b033d06 100644 --- a/src/wokwi_client/pins.py +++ b/src/wokwi_client/pins.py @@ -11,7 +11,7 @@ # # SPDX-License-Identifier: MIT -from typing import TypedDict, Union +from typing import TypedDict from wokwi_client.protocol_types import ResponseMessage @@ -21,7 +21,7 @@ class PinReadMessage(TypedDict): pin: str direction: str - value: Union[float, int, bool] + value: bool pullUp: bool pullDown: bool @@ -30,7 +30,7 @@ class PinListenEvent(TypedDict): part: str pin: str direction: str - value: Union[float, int, bool] + value: bool pullUp: bool pullDown: bool