Browse Source

fix typing for python<3.9

Falko Schindler 2 years ago
parent
commit
094d877f1c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      website/style.py

+ 3 - 1
website/style.py

@@ -1,3 +1,5 @@
+from typing import List
+
 from nicegui import ui
 
 
@@ -34,7 +36,7 @@ def example_link(title: str, description: str) -> None:
             ui.markdown(description).classes(replace='text-black')
 
 
-def features(icon: str, title: str, items: list[str]) -> None:
+def features(icon: str, title: str, items: List[str]) -> None:
     with ui.column().classes('gap-1 col-3'):
         ui.icon(icon).classes('text-5xl mb-3 text-primary opacity-80')
         ui.label(title).classes('text-bold mb-3')