Skip to content

Commit 44f1b28

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 15ca69c commit 44f1b28

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

folium/features.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,9 @@ class GeoJson(Layer):
517517
518518
>>> # Provide a style_function that color all states green but Alabama.
519519
>>> style_function = lambda x: {
520-
... "fillColor": "#0000ff"
521-
... if x["properties"]["name"] == "Alabama"
522-
... else "#00ff00"
520+
... "fillColor": (
521+
... "#0000ff" if x["properties"]["name"] == "Alabama" else "#00ff00"
522+
... )
523523
... }
524524
>>> GeoJson(geojson, style_function=style_function)
525525
@@ -947,9 +947,9 @@ class TopoJson(JSCSSMixin, Layer):
947947
948948
>>> # Provide a style_function that color all states green but Alabama.
949949
>>> style_function = lambda x: {
950-
... "fillColor": "#0000ff"
951-
... if x["properties"]["name"] == "Alabama"
952-
... else "#00ff00"
950+
... "fillColor": (
951+
... "#0000ff" if x["properties"]["name"] == "Alabama" else "#00ff00"
952+
... )
953953
... }
954954
>>> TopoJson(topo_json, "object.myobject", style_function=style_function)
955955

folium/map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Classes for drawing maps.
33
44
"""
5+
56
import warnings
67
from collections import OrderedDict
78
from typing import Dict, List, Optional, Sequence, Tuple, Type, Union

folium/raster_layers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Wraps leaflet TileLayer, WmsTileLayer (TileLayer.WMS), ImageOverlay, and VideoOverlay
33
44
"""
5+
56
from typing import Any, Callable, Optional, Union
67

78
import xyzservices

folium/vector_layers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Wraps leaflet Polyline, Polygon, Rectangle, Circle, and CircleMarker
33
44
"""
5+
56
from typing import List, Optional, Sequence, Union
67

78
from branca.element import MacroElement

tests/test_map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
----------------
44
55
"""
6+
67
import warnings
78

89
import numpy as np

tests/test_raster_layers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
------------------
44
55
"""
6+
67
import pytest
78
import xyzservices
89
from jinja2 import Template

0 commit comments

Comments
 (0)