浏览代码

fix type-annotation

Falko Schindler 2 年之前
父节点
当前提交
0069a8b4f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/auto_context.py

+ 1 - 1
nicegui/auto_context.py

@@ -53,7 +53,7 @@ class update_after_await:
         self.context = context
         self.context.lazy_update()
 
-    def __await__(self) -> Generator[Any, None, Any | None]:
+    def __await__(self) -> Generator[Any, None, Any]:
         coro_iter = self.coro.__await__()
         iter_send, iter_throw = coro_iter.send, coro_iter.throw
         send, message = iter_send, None