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

+ 1 - 1
nicegui/elements/chat_message.py

@@ -8,7 +8,7 @@ from .html import Html
 class ChatMessage(Element):
 
     def __init__(self,
-                 text: Union[str, List[str]] = ..., *,
+                 text: Union[str, List[str]] = ..., *,  # type: ignore
                  name: Optional[str] = None,
                  label: Optional[str] = None,
                  stamp: Optional[str] = None,

+ 2 - 1
nicegui/ui_run.py

@@ -125,9 +125,10 @@ def run(*,
         width, height = window_size or (800, 600)
         native_module.activate(host, port, title, width, height, fullscreen, frameless)
     else:
-        port = port or 8080     
+        port = port or 8080
         host = host or '0.0.0.0'
     assert host is not None
+    assert port is not None
 
     # NOTE: We save host and port in environment variables so the subprocess started in reload mode can access them.
     os.environ['NICEGUI_HOST'] = host