mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Reintroduce button variant repetition and set
This commit is contained in:
committed by
Will McGugan
parent
adead65d6e
commit
975c696fa9
@@ -18,7 +18,7 @@ from ..reactive import Reactive
|
||||
from ..widget import Widget
|
||||
|
||||
ButtonVariant = Literal["default", "success", "warning", "error"]
|
||||
_VALID_BUTTON_VARIANTS = ButtonVariant.__args__ # type: ignore
|
||||
_VALID_BUTTON_VARIANTS = {"default", "success", "warning", "error"}
|
||||
|
||||
|
||||
class InvalidButtonVariant(Exception):
|
||||
|
||||
Reference in New Issue
Block a user