Browse Source

Merge pull request #1728 from s2terminal/main

fix TabPanels.value type hint
Falko Schindler 1 year ago
parent
commit
6d6af6b2e6
1 changed files with 1 additions and 1 deletions
  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,