mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update src/textual/css/styles.py
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
This commit is contained in:
@@ -338,7 +338,7 @@ class Styles(StylesBase):
|
||||
value (object | None): New rule value.
|
||||
|
||||
Returns:
|
||||
bool: ``True`` of the rule changed, otherwise ``False``.
|
||||
bool: ``True`` if the rule changed, otherwise ``False``.
|
||||
"""
|
||||
if value is None:
|
||||
return self._rules.pop(rule, None) is not None
|
||||
|
||||
Reference in New Issue
Block a user