Parcourir la source

fix TabPanels.value type hint

s2terminal il y a 1 an
Parent
commit
8daac820c6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      nicegui/elements/tabs.py

+ 1 - 1
nicegui/elements/tabs.py

@@ -51,7 +51,7 @@ class TabPanels(ValueElement):
 
     def __init__(self,
                  tabs: Tabs, *,
-                 value: Union[Tab, TabPanel, None] = None,
+                 value: Union[Tab, TabPanel, str, None] = None,
                  on_change: Optional[Callable[..., Any]] = None,
                  animated: bool = True,
                  keep_alive: bool = True,