From 2ce4fbeca2b33e0cd28dceadf7681e08b89469e3 Mon Sep 17 00:00:00 2001 From: Frank <33519926+Conengmo@users.noreply.github.com> Date: Wed, 1 Jan 2025 17:04:24 +0100 Subject: [PATCH] run black --- folium/map.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/folium/map.py b/folium/map.py index 79c17e0aa..71bf8dcb3 100644 --- a/folium/map.py +++ b/folium/map.py @@ -373,13 +373,16 @@ class Marker(MacroElement): class SetIcon(MacroElement): """Set the icon of a marker after both are created.""" - _template = Template(""" + + _template = Template( + """ {% macro script(this, kwargs) %} {{ this.marker.get_name() }}.setIcon({{ this.icon.get_name() }}); {% endmacro %} - """) + """ + ) - def __init__(self, marker: 'Marker', icon: 'Icon'): + def __init__(self, marker: "Marker", icon: "Icon"): super().__init__() self._name = "SetIcon" self.marker = marker