Skip to content

Commit e72e6ec

Browse files
adding optional tag b/c of default type
1 parent 5a59d9b commit e72e6ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_monsterm4sk.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
try:
4343
from circuitpython_typing.device_drivers import I2CDeviceDriver
44+
from typing import Optional
4445
except ImportError:
4546
pass
4647

@@ -67,7 +68,7 @@ class MonsterM4sk:
6768
The right screen is the one USB port directly above it.
6869
"""
6970

70-
def __init__(self, i2c: I2CDeviceDriver = None):
71+
def __init__(self, i2c: Optional[I2CDeviceDriver] = None):
7172
"""
7273
:param i2c: The I2C bus to use, will try board.I2C()
7374
if not supplied

0 commit comments

Comments
 (0)