Skip to content

Commit 32a0877

Browse files
committed
displayio api updates
1 parent 498f196 commit 32a0877

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_cursorcontrol/cursorcontrol.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
try:
2727
from types import TracebackType
2828
from typing import Optional, Type
29+
30+
from circuitpython_typing.displayio import AnyDisplay
2931
except ImportError:
3032
pass
3133

@@ -36,7 +38,7 @@
3638
class Cursor:
3739
"""Mouse cursor interaction for CircuitPython.
3840
39-
:param ~displayio.Display display: CircuitPython display object.
41+
:param ~AnyDisplay display: CircuitPython display object.
4042
:param ~displayio.Group display_group: CircuitPython group object to append the cursor to.
4143
:param ~displayio.Bitmap bmp: CircuitPython bitmap object to use as the cursor
4244
:param bool is_hidden: Cursor is hidden on init.
@@ -60,7 +62,7 @@ class Cursor:
6062

6163
def __init__(
6264
self,
63-
display: Optional[displayio.Display] = None,
65+
display: Optional[AnyDisplay] = None,
6466
display_group: Optional[displayio.Group] = None,
6567
bmp: Optional[displayio.Bitmap] = None,
6668
is_hidden: bool = False,

0 commit comments

Comments
 (0)