Skip to content

Commit 45db09b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6bc163f commit 45db09b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

folium/map.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class Icon(MacroElement):
319319
{{ this.options|tojavascript }}
320320
);
321321
{% endmacro %}
322-
322+
323323
{% macro header(this, kwargs) %}
324324
{% if this.is_hex %}
325325
<style>
@@ -380,11 +380,11 @@ def __init__(
380380
):
381381
super().__init__()
382382
self._name = "Icon"
383-
383+
384384
# 1. Determine if the input is a hex color
385385
self.is_hex = color.startswith("#") and len(color) in (4, 7)
386386
self.color = color
387-
387+
388388
# 2. Strip the '#' for the CSS class name generation
389389
self.color_name = color[1:] if self.is_hex else color
390390

@@ -394,7 +394,7 @@ def __init__(
394394
f"color argument of Icon should be one of: {self.color_options} or a valid hex code.",
395395
stacklevel=2,
396396
)
397-
397+
398398
# 4. Pass the stripped color_name to the JavaScript options
399399
self.options = remove_empty(
400400
marker_color=self.color_name,

0 commit comments

Comments
 (0)