diff --git a/rich/style.py b/rich/style.py index 3806a8c4b9..3061f04d35 100644 --- a/rich/style.py +++ b/rich/style.py @@ -507,7 +507,7 @@ def parse(cls, style_definition: str) -> "Style": Returns: `Style`: A Style instance. """ - if style_definition.strip() == "none" or not style_definition: + if str(style_definition).strip() == "none" or not style_definition: return cls.null() STYLE_ATTRIBUTES = cls.STYLE_ATTRIBUTES