mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
keep pylance happy
This commit is contained in:
@@ -659,7 +659,7 @@ class DOMNode(MessagePump):
|
||||
nodes = list(node_generator)
|
||||
if reverse:
|
||||
nodes.reverse()
|
||||
return cast("list[WalkType]", nodes)
|
||||
return cast("list[DOMNode]", nodes)
|
||||
|
||||
def get_child(self, id: str) -> DOMNode:
|
||||
"""Return the first child (immediate descendent) of this node with the given ID.
|
||||
|
||||
Reference in New Issue
Block a user