Skip to content

armgit / fli

Public Imported from GitHub
0

Google Flights MCP, CLI and Python Library

style: fix ruff formatting in MCP server

Punit Araniddede3f729b9
diff --git a/fli/mcp/server.py b/fli/mcp/server.py
index 70f5b96..dac8212 100755
--- a/fli/mcp/server.py
+++ b/fli/mcp/server.py
@@ -335,11 +335,7 @@ def _serialize_flight_result(flight: Any, is_round_trip: bool = False) -> dict[s
return {
"price": price_segment.price,
"currency": price_segment.currency or CONFIG.default_currency,
- "legs": [
- _serialize_flight_leg(leg)
- for segment in segments
- for leg in segment.legs
- ],
+ "legs": [_serialize_flight_leg(leg) for segment in segments for leg in segment.legs],
}