From 2797c1474cf29321ac0ed78833e944441ecf8207 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 6 Oct 2022 21:16:46 +0200 Subject: Renamed Endpoint to PointForecast --- windy/__init__.py | 2 +- windy/point_forecast.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/windy/__init__.py b/windy/__init__.py index cd9c67f..fdd2c3b 100644 --- a/windy/__init__.py +++ b/windy/__init__.py @@ -9,7 +9,7 @@ class Windy: self.registry = registry self.session = session or Session() self.api = api - self._point_forecast = point_forecast.Endpoint("/point-forecast/v2") + self._point_forecast = point_forecast.PointForecast("/point-forecast/v2") def point_forecast(self, *args, **kwargs): return self._point_forecast(self, *args, **kwargs) diff --git a/windy/point_forecast.py b/windy/point_forecast.py index 1f18c07..4c269fe 100644 --- a/windy/point_forecast.py +++ b/windy/point_forecast.py @@ -124,7 +124,7 @@ class Response: @dataclass -class Endpoint: +class PointForecast: path: str def __call__(self, ctx, *args, **kwargs): -- cgit v1.1