Przeglądaj źródła

Merge pull request #1728 from s2terminal/main

fix TabPanels.value type hint
Falko Schindler 1 rok temu
rodzic
commit
6d6af6b2e6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      nicegui/elements/tabs.py

+ 1 - 1
nicegui/elements/tabs.py

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