Skip to content

Commit c10565d

Browse files
committed
linted
1 parent c896c7b commit c10565d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/cartogram/cartogram.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ def _geodataframe_constructor_with_fallback(cls, *args, **kwargs):
4444
4545
Checks whether or not arguments of the child class are used.
4646
"""
47-
if (
48-
"cartogram_attribute" in kwargs
49-
or isinstance(args[0], (str, pandas.Series))
50-
):
47+
if "cartogram_attribute" in kwargs or isinstance(args[0], (str, pandas.Series)):
5148
df = cls(*args, **kwargs)
5249
else:
5350
df = geopandas.GeoDataFrame(*args, **kwargs)

0 commit comments

Comments
 (0)