Skip to content

Commit faa73bc

Browse files
Add correct type of apple create_notification_widget()
1 parent 1ef3d98 commit faa73bc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

adafruit_display_notification/apple.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@
1313

1414
from . import PlainNotification
1515

16+
try:
17+
from adafruit_ble_apple_notification_center import Notification
18+
except ImportError:
19+
pass
20+
1621
__version__ = "0.0.0+auto.0"
1722
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Display_Notification.git"
1823

1924

2025
def create_notification_widget(
21-
notification: PlainNotification,
26+
notification: Notification,
2227
max_width: int,
2328
max_height: int,
2429
*,

0 commit comments

Comments
 (0)