Skip to content

Commit

Permalink
Apply requested changes round 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianOrteil committed Oct 2, 2022
1 parent 30177ac commit 0aece2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_74hc595.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def direction(self) -> digitalio.Direction.OUTPUT:
@direction.setter
def direction( # pylint: disable=no-self-use
self,
val: digitalio.Direction,
) -> "typing.Union[None, typing.NoReturn]":
val: digitalio.Direction.OUTPUT,
) -> None:
"""``Direction`` can only be set to ``OUTPUT``."""
if val != digitalio.Direction.OUTPUT:
raise RuntimeError("Digital input not supported.")
Expand Down

0 comments on commit 0aece2e

Please sign in to comment.