From 4d06b527db8e897a188c7349dcaa23b1c37fbe5e Mon Sep 17 00:00:00 2001 From: Frank <33519926+Conengmo@users.noreply.github.com> Date: Fri, 24 Jan 2025 13:52:34 +0100 Subject: [PATCH] mypy --- folium/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folium/map.py b/folium/map.py index b9557b33f..716378421 100644 --- a/folium/map.py +++ b/folium/map.py @@ -404,7 +404,7 @@ def __init__( draggable=draggable or None, autoPan=draggable or None, **kwargs ) # this attribute is not used by Marker, but by GeoJson - self.icon: Optional[Icon] = None + self.icon: Union[Icon, "CustomIcon", "DivIcon", None] = None if icon is not None: self.add_child(icon) self.icon = icon