Skip to content

Commit ea2ce3c

Browse files
committed
Revert name change of "flights" to "trips"
1 parent 4db5d98 commit ea2ce3c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

fast_flights/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@ def safe(n: Optional[LexborNode]):
192192
if not flights:
193193
raise RuntimeError("No flights found:\n{}".format(r.text_markdown))
194194

195-
return Result(current_price=current_price, trips=[Flight(**fl) for fl in flights]) # type: ignore
195+
return Result(current_price=current_price, flights=[Flight(**fl) for fl in flights]) # type: ignore

fast_flights/schema.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
from dataclasses import dataclass
44
from typing import List, Literal, Optional
55

6+
67
@dataclass
78
class Result:
89
current_price: Literal["low", "typical", "high"]
9-
trips: List[Flight]
10+
flights: List[Flight]
1011

1112

1213
@dataclass

uv.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)