mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add docstrings.
This commit is contained in:
@@ -409,9 +409,11 @@ class App(Generic[ReturnType], DOMNode):
|
|||||||
self.set_class(not self.dark, "-light-mode")
|
self.set_class(not self.dark, "-light-mode")
|
||||||
|
|
||||||
def validate_title(self, title: Any) -> str:
|
def validate_title(self, title: Any) -> str:
|
||||||
|
"""Make sure the title is set to a string."""
|
||||||
return str(title)
|
return str(title)
|
||||||
|
|
||||||
def validate_sub_title(self, sub_title: Any) -> str:
|
def validate_sub_title(self, sub_title: Any) -> str:
|
||||||
|
"""Make sure the sub-title is set to a string."""
|
||||||
return str(sub_title)
|
return str(sub_title)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user