diff --git a/agenda/stats.py b/agenda/stats.py index 62b67c2..d9bdc51 100644 --- a/agenda/stats.py +++ b/agenda/stats.py @@ -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) diff --git a/agenda/trip.py b/agenda/trip.py index 8cab498..946c3ac 100644 --- a/agenda/trip.py +++ b/agenda/trip.py @@ -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,