Add missing types to arguments

This commit is contained in:
Dave Pearson
2022-11-10 21:28:21 +00:00
parent 7864aa3f8e
commit 3dae5f2c93

View File

@@ -331,9 +331,9 @@ class Button(Static, can_focus=True):
Args:
label (str): The text that appears within the button.
disabled (bool): Whether the button is disabled or not.
name: The name of the button.
id: The ID of the button in the DOM.
classes: The CSS classes of the button.
name (str | None, optional): The name of the button.
id (str | None, optional): The ID of the button in the DOM.
classes (str | None, optional): The CSS classes of the button.
Returns:
Button: A Button widget of the 'error' variant.