Apply refurb/ruff rule FURB173 (#11852)

This commit is contained in:
Dimitri Papadopoulos Orfanos
2024-01-04 04:50:31 +01:00
committed by GitHub
parent 6e6f975cb0
commit 6297827a04

View File

@@ -27,7 +27,7 @@ class _CascadingStyleSheet:
) -> None:
object.__setattr__(self, 'filename', filename)
object.__setattr__(self, 'priority', priority)
object.__setattr__(self, 'attributes', {'rel': rel, 'type': type, **attributes})
object.__setattr__(self, 'attributes', {'rel': rel, 'type': type} | attributes)
def __str__(self):
attr = ', '.join(f'{k}={v!r}' for k, v in self.attributes.items())