mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Stop casting walk_children to a list
As of
b56fb018f1
it now returns a list so the cast isn't needed any more.
This commit is contained in:
@@ -1448,8 +1448,8 @@ class App(Generic[ReturnType], DOMNode):
|
||||
widget = event.widget
|
||||
parent = widget.parent
|
||||
|
||||
remove_widgets = list(
|
||||
widget.walk_children(Widget, with_self=True, method="depth", reverse=True)
|
||||
remove_widgets = widget.walk_children(
|
||||
Widget, with_self=True, method="depth", reverse=True
|
||||
)
|
||||
|
||||
if self.screen.focused in remove_widgets:
|
||||
|
||||
Reference in New Issue
Block a user