Bläddra i källkod

fixing python 3.7 compatibiltiy

Rodja Trappe 3 år sedan
förälder
incheckning
3b5df5e281
1 ändrade filer med 2 tillägg och 2 borttagningar
  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