瀏覽代碼

Removed async from example function

Brian Landry 1 年之前
父節點
當前提交
4e7d1f2122
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      website/more_documentation/button_documentation.py

+ 1 - 1
website/more_documentation/button_documentation.py

@@ -37,7 +37,7 @@ def more() -> None:
     @text_demo('Disable button with a context manager', '''
         This showcases a context manager that can be used to disable a button for the duration of an async process.
     ''')
-    async def disable_context_manager() -> None:
+    def disable_context_manager() -> None:
         from nicegui.elements.mixins.disableable_element import DisableableElement
         from contextlib import contextmanager
         import httpx