Skip to content

Commit 7a539f8

Browse files
committed
Add Missing type annotations
1 parent 8bfbb51 commit 7a539f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_tca8418.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def direction(self, val: digitalio.Direction) -> None:
354354
self._dir = val
355355

356356
@property
357-
def pull(self) -> Union[None, digitalio.Pull.UP]:
357+
def pull(self) -> Union[None, int]:
358358
"""The pull setting for the digital IO, either `digitalio.Pull.UP`
359359
for pull up, or ``None`` for no pull up
360360
"""
@@ -364,7 +364,7 @@ def pull(self) -> Union[None, digitalio.Pull.UP]:
364364
return None
365365

366366
@pull.setter
367-
def pull(self, val: Optional[digitalio.Pull.UP]):
367+
def pull(self, val: Optional[int]):
368368
if val is digitalio.Pull.UP:
369369
# for inputs, turn on the pullup (write high)
370370
self._tca.pullup[self._pin] = True

0 commit comments

Comments
 (0)