File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2626try :
2727 from types import TracebackType
2828 from typing import Optional , Type
29+
30+ from circuitpython_typing .displayio import AnyDisplay
2931except ImportError :
3032 pass
3133
3638class 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 ,
Original file line number Diff line number Diff line change 33# SPDX-License-Identifier: Unlicense
44
55Adafruit-Blinka
6+ Adafruit-Blinka-Displayio
67adafruit-circuitpython-debouncer
8+ adafruit-circuitpython-typing
You can’t perform that action at this time.
0 commit comments