mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Apply refurb/ruff rule FURB173 (#11852)
This commit is contained in:
committed by
GitHub
parent
6e6f975cb0
commit
6297827a04
@@ -27,7 +27,7 @@ class _CascadingStyleSheet:
|
|||||||
) -> None:
|
) -> None:
|
||||||
object.__setattr__(self, 'filename', filename)
|
object.__setattr__(self, 'filename', filename)
|
||||||
object.__setattr__(self, 'priority', priority)
|
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):
|
def __str__(self):
|
||||||
attr = ', '.join(f'{k}={v!r}' for k, v in self.attributes.items())
|
attr = ', '.join(f'{k}={v!r}' for k, v in self.attributes.items())
|
||||||
|
|||||||
Reference in New Issue
Block a user