Skip to content

Commit 8049518

Browse files
committed
Fix mypy complaints
1 parent 6374974 commit 8049518

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

prepare_species/extract_species_data_psql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def process_row(
193193
category_weight = 0
194194

195195
# This is a fix as per the method to include the missing islands layer:
196-
habitats = list(habitats) + ["islands"]
196+
habitats_list = list(habitats) + ["islands"]
197197

198198
gdf = gpd.GeoDataFrame(
199199
[[
@@ -204,7 +204,7 @@ def process_row(
204204
systems,
205205
int(elevation_lower) if elevation_lower is not None else None,
206206
int(elevation_upper) if elevation_upper is not None else None,
207-
'|'.join(habitats),
207+
'|'.join(habitats_list),
208208
scientific_name,
209209
family_name,
210210
class_name,

prepare_species/extract_species_data_redlist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def process_species(
243243
logger.debug("Dropping %s: %s", id_no, exc)
244244
return report
245245

246-
habitats = list(habitats) + ["islands"]
246+
habitats_list = list(habitats) + ["islands"]
247247

248248
# Create GeoDataFrame with all data
249249
gdf = gpd.GeoDataFrame(
@@ -255,7 +255,7 @@ def process_species(
255255
systems,
256256
elevation_lower,
257257
elevation_upper,
258-
'|'.join(habitats),
258+
'|'.join(habitats_list),
259259
scientific_name,
260260
family_name,
261261
class_name,

0 commit comments

Comments
 (0)