瀏覽代碼

code review

Falko Schindler 1 年之前
父節點
當前提交
74bfad2b28
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      nicegui/ui_run.py
  2. 1 1
      nicegui/welcome.py

+ 1 - 1
nicegui/ui_run.py

@@ -45,7 +45,7 @@ def run(*,
         prod_js: bool = True,
         endpoint_documentation: Literal['none', 'internal', 'page', 'all'] = 'none',
         storage_secret: Optional[str] = None,
-        welcome_message: Optional[str] = 'NiceGUI ready to go ',
+        welcome_message: str = 'NiceGUI ready to go ',
         **kwargs: Any,
         ) -> None:
     """ui.run

+ 1 - 1
nicegui/welcome.py

@@ -13,7 +13,7 @@ def _get_all_ips() -> List[str]:
     return ips
 
 
-async def print_message(welcome_message) -> None:
+async def print_message(welcome_message: str) -> None:
     """Print a welcome message with URLs to access the NiceGUI app."""
     print(welcome_message, end='', flush=True)
     host = os.environ['NICEGUI_HOST']