From bf0634db562dcba7145b33f989965203793265e0 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Tue, 28 Jan 2025 18:59:09 +0100 Subject: [PATCH] fix ci --- reflex/style.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/reflex/style.py b/reflex/style.py index d6bc28c5a..97bd151eb 100644 --- a/reflex/style.py +++ b/reflex/style.py @@ -292,7 +292,7 @@ class Style(dict): ) super().__setitem__(key, value) - def __or__(self, other: Style) -> Style: + def __or__(self, other: Style | dict) -> Style: """Combine two styles. Args: @@ -301,9 +301,7 @@ class Style(dict): Returns: The combined style. """ - if not isinstance(other, Style): - other = Style(other) - return Style(super().__or__(self, other)) + return Style(super().__or__(self, other)) # pyright: ignore [reportGeneralTypeIssues, reportCallIssue] def _format_emotion_style_pseudo_selector(key: str) -> str: