mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix for 3.7
This commit is contained in:
@@ -356,9 +356,9 @@ class DOMNode(MessagePump):
|
|||||||
|
|
||||||
# TODO: Feels like there may be opportunity for caching here.
|
# TODO: Feels like there may be opportunity for caching here.
|
||||||
|
|
||||||
style = sum(
|
style = Style()
|
||||||
[node.styles.text_style for node in reversed(self.ancestors)], start=Style()
|
for node in reversed(self.ancestors):
|
||||||
)
|
style += node.styles.text_style
|
||||||
return style
|
return style
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user