From 0f9a954508806f765e726a3b639cde7c144e9fce Mon Sep 17 00:00:00 2001 From: oncleben31 Date: Sun, 11 Oct 2020 20:31:28 +0200 Subject: [PATCH] Fix code style by Black --- src/meteofrance/client.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/meteofrance/client.py b/src/meteofrance/client.py index de97fd34..02f63f3c 100644 --- a/src/meteofrance/client.py +++ b/src/meteofrance/client.py @@ -82,10 +82,7 @@ def search_places( # Forecast # def get_forecast( - self, - latitude: float, - longitude: float, - language: str = "fr", + self, latitude: float, longitude: float, language: str = "fr", ) -> Forecast: """Retrieve the weather forecast for a given GPS location. @@ -112,11 +109,7 @@ def get_forecast( ) return Forecast(resp.json()) - def get_forecast_for_place( - self, - place: Place, - language: str = "fr", - ) -> Forecast: + def get_forecast_for_place(self, place: Place, language: str = "fr",) -> Forecast: """Retrieve the weather forecast for a given Place instance. Results can be fetched in french or english according to the language parameter. @@ -235,9 +228,7 @@ def get_warning_full(self, domain: str, with_costal_bulletin: bool = False) -> F if with_costal_bulletin: if domain in COASTAL_DEPARTMENT_LIST: resp = self.session.request( - "get", - "warning/full", - params={"domain": domain + "10"}, + "get", "warning/full", params={"domain": domain + "10"}, ) full_phenomenoms.merge_with_coastal_phenomenons(Full(resp.json()))