Reformat remaining Python files for black 25.1.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Adil Hafeez 2026-02-12 06:09:23 +00:00
parent 9858ce4d31
commit c422f06d00
4 changed files with 27 additions and 18 deletions

View file

@ -287,12 +287,16 @@ async def fetch_flights(
"flight_number": flight.get("ident_iata") or flight.get("ident"),
"departure_time": flight.get("scheduled_out"),
"arrival_time": flight.get("scheduled_in"),
"origin": flight["origin"].get("code_iata")
if isinstance(flight.get("origin"), dict)
else None,
"destination": flight["destination"].get("code_iata")
if isinstance(flight.get("destination"), dict)
else None,
"origin": (
flight["origin"].get("code_iata")
if isinstance(flight.get("origin"), dict)
else None
),
"destination": (
flight["destination"].get("code_iata")
if isinstance(flight.get("destination"), dict)
else None
),
"aircraft_type": flight.get("aircraft_type"),
"status": flight.get("status"),
"terminal_origin": flight.get("terminal_origin"),

View file

@ -197,12 +197,16 @@ async def fetch_flights(
"flight_number": flight.get("ident_iata") or flight.get("ident"),
"departure_time": flight.get("scheduled_out"),
"arrival_time": flight.get("scheduled_in"),
"origin": flight["origin"].get("code_iata")
if isinstance(flight.get("origin"), dict)
else None,
"destination": flight["destination"].get("code_iata")
if isinstance(flight.get("destination"), dict)
else None,
"origin": (
flight["origin"].get("code_iata")
if isinstance(flight.get("origin"), dict)
else None
),
"destination": (
flight["destination"].get("code_iata")
if isinstance(flight.get("destination"), dict)
else None
),
"aircraft_type": flight.get("aircraft_type"),
"status": flight.get("status"),
"terminal_origin": flight.get("terminal_origin"),

View file

@ -1,4 +1,5 @@
"""Sphinx extension to copy provider_models.yaml to build output."""
from __future__ import annotations
from pathlib import Path

View file

@ -230,12 +230,12 @@ async def get_weather_data(request: Request, messages: list, days: int = 1):
"day_name": date_obj.strftime("%A"),
"temperature_c": round(temp_c, 1) if temp_c is not None else None,
"temperature_f": celsius_to_fahrenheit(temp_c),
"temperature_max_c": round(temp_max, 1)
if temp_max is not None
else None,
"temperature_min_c": round(temp_min, 1)
if temp_min is not None
else None,
"temperature_max_c": (
round(temp_max, 1) if temp_max is not None else None
),
"temperature_min_c": (
round(temp_min, 1) if temp_min is not None else None
),
"weather_code": weather_code,
"sunrise": sunrise.split("T")[1] if sunrise else None,
"sunset": sunset.split("T")[1] if sunset else None,