Skip to content

Commit

Permalink
Fix code style by Black
Browse files Browse the repository at this point in the history
  • Loading branch information
oncleben31 committed Oct 11, 2020
1 parent cca3998 commit 0f9a954
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/meteofrance/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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()))

Expand Down

0 comments on commit 0f9a954

Please sign in to comment.