Skip to content

Commit

Permalink
remove empty default values. add types of items in lists of args
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Jun 5, 2023
1 parent 993b21b commit 90f5d75
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion adafruit_matrixkeypad.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
# to have this in a try/except to enable type
try:
from typing import List
from digitalio import DigitalInOut
except ImportError:
pass

Expand All @@ -41,7 +42,12 @@
class Matrix_Keypad:
"""Driver for passive matrix keypads - any size"""

def __init__(self, row_pins: List = [], col_pins: List = [], keys:List = []):
def __init__(
self,
row_pins: List[DigitalInOut],
col_pins: List[DigitalInOut],
keys: List[List],
) -> None:
"""
Initialise the driver with the correct size and key list.
Expand Down

0 comments on commit 90f5d75

Please sign in to comment.