fix ci
This commit is contained in:
parent
dd3e2bde22
commit
bf0634db56
@ -292,7 +292,7 @@ class Style(dict):
|
|||||||
)
|
)
|
||||||
super().__setitem__(key, value)
|
super().__setitem__(key, value)
|
||||||
|
|
||||||
def __or__(self, other: Style) -> Style:
|
def __or__(self, other: Style | dict) -> Style:
|
||||||
"""Combine two styles.
|
"""Combine two styles.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -301,9 +301,7 @@ class Style(dict):
|
|||||||
Returns:
|
Returns:
|
||||||
The combined style.
|
The combined style.
|
||||||
"""
|
"""
|
||||||
if not isinstance(other, Style):
|
return Style(super().__or__(self, other)) # pyright: ignore [reportGeneralTypeIssues, reportCallIssue]
|
||||||
other = Style(other)
|
|
||||||
return Style(super().__or__(self, other))
|
|
||||||
|
|
||||||
|
|
||||||
def _format_emotion_style_pseudo_selector(key: str) -> str:
|
def _format_emotion_style_pseudo_selector(key: str) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user