Skip to content

Commit 62d977a

Browse files
author
Hasan
authored
Fix: Use List from typing instead of list class (#22)
Thanks to @JuanPotato
1 parent 5c6d5ff commit 62d977a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyqtlet2/leaflet/layer/marker/marker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
from ..icon import Icon
33
from ...core.Parser import Parser
44
from PyQt5.QtCore import pyqtSlot, pyqtSignal, QJsonValue
5+
from typing import List
56

67

78
class Marker(Layer):
89
moveend = pyqtSignal(dict)
910
move = pyqtSignal(dict)
1011
click = pyqtSignal(dict)
1112

12-
def __init__(self, latLng: list[float], options=None):
13+
def __init__(self, latLng: List[float], options=None):
1314
super().__init__()
1415
if isinstance(options, type(None)):
1516
options = {}

0 commit comments

Comments
 (0)