File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class UIFocusMixin(UIWidget):
110
110
111
111
_focusable_widgets = ListProperty [UIWidget ]()
112
112
_focused = Property (0 )
113
- _interacting : UIWidget | None = None
113
+ _interacting : Optional [ UIWidget ] = None
114
114
115
115
_debug = Property (False )
116
116
@@ -199,7 +199,7 @@ def _ensure_focused_property(self):
199
199
else :
200
200
widget .focused = False
201
201
202
- def _get_focused_widget (self ) -> UIWidget | None :
202
+ def _get_focused_widget (self ) -> Optional [ UIWidget ] :
203
203
if len (self ._focusable_widgets ) == 0 :
204
204
return None
205
205
@@ -218,7 +218,7 @@ def _walk_widgets(cls, root: UIWidget):
218
218
yield child
219
219
yield from cls ._walk_widgets (child )
220
220
221
- def detect_focusable_widgets (self , root : UIWidget | None = None ):
221
+ def detect_focusable_widgets (self , root : Optional [ UIWidget ] = None ):
222
222
"""Automatically detect focusable widgets."""
223
223
if root is None :
224
224
root = self
You can’t perform that action at this time.
0 commit comments