소스 검색

fixing python 3.7 compatibiltiy

Rodja Trappe 3 년 전
부모
커밋
3b5df5e281
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      nicegui/events.py

+ 2 - 2
nicegui/events.py

@@ -2,7 +2,7 @@ import asyncio
 from inspect import signature
 from pydantic import BaseModel
 import traceback
-from typing import Any, Awaitable, Callable, Optional, Union
+from typing import Any, Awaitable, Callable, List, Optional, Union
 
 from .elements.element import Element
 
@@ -15,7 +15,7 @@ class ClickEventArguments(EventArguments):
     pass
 
 class UploadEventArguments(EventArguments):
-    files: list[bytes]
+    files: List[bytes]
 
 class ValueChangeEventArguments(EventArguments):
     value: Any