Skip to content

Commit a1ecde6

Browse files
committed
Making return type changes as requested by review
1 parent 89d7a06 commit a1ecde6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

simpleio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def __init__(self, pin: Pin, **kwargs: Any) -> None:
214214
self.iopin.switch_to_output(**kwargs)
215215

216216
@property
217-
def value(self) -> Any:
217+
def value(self) -> bool:
218218
"""The digital logic level of the output pin."""
219219
return self.iopin.value
220220

@@ -236,12 +236,14 @@ def __init__(self, pin: Pin, **kwargs: Any) -> None:
236236
self.iopin.switch_to_input(**kwargs)
237237

238238
@property
239-
def value(self) -> Any:
239+
def value(self) -> bool:
240240
"""The digital logic level of the input pin."""
241241
return self.iopin.value
242242

243243
@value.setter
244-
def value(self, value: Any) -> None: # pylint: disable=no-self-use, unused-argument
244+
def value(
245+
self, value: bool
246+
) -> None: # pylint: disable=no-self-use, unused-argument
245247
raise AttributeError("Cannot set the value on a digital input.")
246248

247249

0 commit comments

Comments
 (0)