Update src/textual/css/styles.py

Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
This commit is contained in:
Will McGugan
2022-02-21 14:07:38 +00:00
committed by GitHub
parent 6d98187534
commit 819f7890bc

View File

@@ -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