From 6297827a04eae4a3045e3ade8751a8fc8c617213 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 4 Jan 2024 04:50:31 +0100 Subject: [PATCH] Apply refurb/ruff rule FURB173 (#11852) --- sphinx/builders/html/_assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/builders/html/_assets.py b/sphinx/builders/html/_assets.py index a72c5000b..c2fb691cb 100644 --- a/sphinx/builders/html/_assets.py +++ b/sphinx/builders/html/_assets.py @@ -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())