Skip to content

Commit

Permalink
use f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 1, 2024
1 parent 6770927 commit 28e5458
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions folium/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,11 +1153,9 @@ def warn_for_geometry_collections(self) -> None:
]
if any(geom_collections):
warnings.warn(
"{} is not configured to render for GeoJson GeometryCollection geometries. "
"Please consider reworking these features: {} to MultiPolygon for full functionality.\n"
"https://tools.ietf.org/html/rfc7946#page-9".format(
self._name, geom_collections
),
f"{self._name} is not configured to render for GeoJson GeometryCollection geometries. "
f"Please consider reworking these features: {geom_collections} to MultiPolygon for full functionality.\n"
"https://tools.ietf.org/html/rfc7946#page-9",
UserWarning,
)

Expand Down

0 comments on commit 28e5458

Please sign in to comment.