Skip to content

Commit

Permalink
fix type annotation for Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Dec 14, 2023
1 parent 7c636dc commit 47f3fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nicegui/elements/leaflet_layers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import Any, Dict, Tuple
from typing import Any, Dict, List, Tuple

from typing_extensions import Self

Expand All @@ -10,7 +10,7 @@
@dataclass(**KWONLY_SLOTS)
class GenericLayer(Layer):
name: str
args: list[Any] = field(default_factory=list)
args: List[Any] = field(default_factory=list)

def to_dict(self) -> Dict:
return {
Expand Down

0 comments on commit 47f3fa2

Please sign in to comment.