|
12 | 12 | import numpy as np |
13 | 13 | import requests |
14 | 14 | 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 | +) |
16 | 24 | from branca.utilities import color_brewer |
17 | 25 |
|
18 | 26 | from folium.elements import JSCSSMixin |
@@ -290,7 +298,9 @@ def render(self, **kwargs): |
290 | 298 | """Renders the HTML representation of the element.""" |
291 | 299 | parent = self._parent |
292 | 300 | 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 | + ) |
294 | 304 |
|
295 | 305 | parent.html.add_child( |
296 | 306 | Element( |
@@ -1973,7 +1983,9 @@ def __init__( |
1973 | 1983 | elif isinstance(colormap, StepColormap): |
1974 | 1984 | cm = colormap |
1975 | 1985 | 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 | + ) |
1977 | 1989 |
|
1978 | 1990 | out: Dict[str, List[List[List[float]]]] = {} |
1979 | 1991 | for (lat1, lng1), (lat2, lng2), color in zip(coords[:-1], coords[1:], colors): |
|
0 commit comments