Skip to content

Commit d19ab0e

Browse files
Add typing import to prevent other typing-only imports from being loaded at runtime
1 parent faa73bc commit d19ab0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_display_notification/apple.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
from . import PlainNotification
1515

1616
try:
17+
# unused typing-import to prevent the other typing-only imports from being loaded at runtime
18+
from typing import Any # pylint: disable=unused-import
19+
1720
from adafruit_ble_apple_notification_center import Notification
1821
except ImportError:
1922
pass

0 commit comments

Comments
 (0)