Files
gallery/gallery/sketch/weather/api.py
2026-06-24 16:00:39 +03:00

18 lines
466 B
Python

import datetime
from ..api import Api
from .model import Location, WeatherResponse
class WeatherApi(Api):
TYPE = "weather"
async def find_locations(self, query: str) -> list[Location]:
raise NotImplementedError
async def get_day(self, location_id: str, date: datetime.date) -> WeatherResponse:
raise NotImplementedError
async def get_days(self, location_id: str, days: int) -> WeatherResponse:
raise NotImplementedError