소스 검색

fix typing for Python 3.7

Falko Schindler 1 년 전
부모
커밋
050591b8d9
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      nicegui/elements/scroll_area.py

+ 3 - 1
nicegui/elements/scroll_area.py

@@ -1,4 +1,6 @@
-from typing import Any, Callable, Dict, Literal, Optional
+from typing import Any, Callable, Dict, Optional
+
+from typing_extensions import Literal
 
 from ..element import Element
 from ..events import ScrollEventArguments, handle_event