Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rich/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down