Skip to content

Commit bab2586

Browse files
committed
black
1 parent f329d81 commit bab2586

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

folium/features.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212
import numpy as np
1313
import requests
1414
from branca.colormap import ColorMap, LinearColormap, StepColormap
15-
from branca.element import Div, Element, Figure, Html, IFrame, JavascriptLink, MacroElement
15+
from branca.element import (
16+
Div,
17+
Element,
18+
Figure,
19+
Html,
20+
IFrame,
21+
JavascriptLink,
22+
MacroElement,
23+
)
1624
from branca.utilities import color_brewer
1725

1826
from folium.elements import JSCSSMixin
@@ -290,7 +298,9 @@ def render(self, **kwargs):
290298
"""Renders the HTML representation of the element."""
291299
parent = self._parent
292300
if not isinstance(parent, (Figure, Div, Popup)):
293-
raise TypeError("VegaLite elements can only be added to a Figure, Div, or Popup")
301+
raise TypeError(
302+
"VegaLite elements can only be added to a Figure, Div, or Popup"
303+
)
294304

295305
parent.html.add_child(
296306
Element(
@@ -1973,7 +1983,9 @@ def __init__(
19731983
elif isinstance(colormap, StepColormap):
19741984
cm = colormap
19751985
else:
1976-
raise TypeError(f"Unexpected type for argument `colormap`: {type(colormap)}")
1986+
raise TypeError(
1987+
f"Unexpected type for argument `colormap`: {type(colormap)}"
1988+
)
19771989

19781990
out: Dict[str, List[List[List[float]]]] = {}
19791991
for (lat1, lng1), (lat2, lng2), color in zip(coords[:-1], coords[1:], colors):

0 commit comments

Comments
 (0)