Falko Schindler 1 년 전
부모
커밋
21d3bb36d2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      nicegui/ui_run_with.py

+ 2 - 2
nicegui/ui_run_with.py

@@ -59,8 +59,8 @@ def run_with(
     @asynccontextmanager
     async def lifespan_wrapper(app):
         _startup()
-        async with main_app_lifespan(app) as maybe_state:
-            yield maybe_state
+        async with main_app_lifespan(app):
+            yield
         _shutdown()
 
     app.router.lifespan_context = lifespan_wrapper