Falko Schindler 1 rok temu
rodzic
commit
9a0811a81f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      nicegui/elements/expansion.py

+ 1 - 1
nicegui/elements/expansion.py

@@ -8,7 +8,7 @@ from .mixins.value_element import ValueElement
 class Expansion(TextElement, ValueElement, DisableableElement):
 
     def __init__(self,
-                 text: Optional[str] = None, *,
+                 text: str = '', *,
                  icon: Optional[str] = None,
                  value: bool = False,
                  on_value_change: Optional[Callable[..., Any]] = None