File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1010import threading
1111from functools import lru_cache , partial
1212from inspect import getfile
13+ from operator import attrgetter
1314from typing import (
1415 TYPE_CHECKING ,
1516 Any ,
@@ -1214,7 +1215,7 @@ def displayed_children(self) -> list[Widget]:
12141215 Returns:
12151216 A list of nodes.
12161217 """
1217- return [ child for child in self ._nodes if child . display ]
1218+ return list ( filter ( attrgetter ( "display" ), self ._nodes ))
12181219
12191220 def watch (
12201221 self ,
Original file line number Diff line number Diff line change @@ -662,8 +662,6 @@ def _move_focus(
662662 the CSS selectors given in the argument.
663663 """
664664
665- # TODO: This shouldn't be required
666- self ._compositor ._full_map_invalidated = True
667665 if not isinstance (selector , str ):
668666 selector = selector .__name__
669667 selector_set = parse_selectors (selector )
You can’t perform that action at this time.
0 commit comments