Skip to content

Commit e5734ba

Browse files
committed
mypy adjustments
Signed-off-by: John Seekins <[email protected]>
1 parent 4260840 commit e5734ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

enricher.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,9 @@ def enrich_facility_data(facilities_data: dict) -> dict:
3636

3737
with ProcessPoolExecutor(max_workers=3) as pool:
3838
for res in pool.map(enrich_facility, facilities_data["facilities"].items()):
39-
enriched_data["facilities"][res[0]] = res[1]
39+
enriched_data["facilities"][res[0]] = res[1] # type: ignore [index]
4040
processed += 1
4141
logger.info("Finished %s, %s/%s completed", res[1]["name"], processed, total)
42-
# for facility_id, facility in facilities_data["facilities"].items():
43-
# enriched_facility = enrich_facility(facility_id, facility)
44-
# enriched_data["facilities"][facility_id] = enriched_facility # type: ignore [index]
4542

4643
logger.info("Data enrichment completed!")
4744
enriched_data["enrich_runtime"] = time.time() - start_time

0 commit comments

Comments
 (0)