Correct spelling mistakes

This commit is contained in:
Edward Betts 2025-01-24 18:44:05 +00:00
parent 7755bcf668
commit 010f56aabf
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ from agenda.types import StrDict, Trip
def travel_legs(trip: Trip, stats: StrDict) -> None:
"""Calcuate stats for travel legs."""
"""Calculate stats for travel legs."""
for leg in trip.travel:
if leg["type"] == "flight":
stats.setdefault("flight_count", 0)

View file

@ -245,7 +245,7 @@ def get_locations(trip: Trip) -> dict[str, StrDict]:
def coordinate_dict(item: StrDict, coord_type: str) -> StrDict:
"""Build coodinate dict for item."""
"""Build coordinate dict for item."""
return {
"name": item["name"],
"type": coord_type,