fix for 3.7

This commit is contained in:
Will McGugan
2022-07-29 11:07:48 +01:00
parent 67091ef2df
commit 001139b18d

View File

@@ -356,9 +356,9 @@ class DOMNode(MessagePump):
# TODO: Feels like there may be opportunity for caching here.
style = sum(
[node.styles.text_style for node in reversed(self.ancestors)], start=Style()
)
style = Style()
for node in reversed(self.ancestors):
style += node.styles.text_style
return style
@property