mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
typing
This commit is contained in:
@@ -490,7 +490,7 @@ class DOMNode(MessagePump):
|
||||
return self.styles.visibility != "hidden"
|
||||
|
||||
@visible.setter
|
||||
def visible(self, new_value: bool) -> None:
|
||||
def visible(self, new_value: bool | str) -> None:
|
||||
if isinstance(new_value, bool):
|
||||
self.styles.visibility = "visible" if new_value else "hidden"
|
||||
elif new_value in VALID_VISIBILITY:
|
||||
|
||||
Reference in New Issue
Block a user