Skip to content

Commit 6b98123

Browse files
committed
Update api.py
Linting (type hints)
1 parent 28be53f commit 6b98123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyhilo/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ async def get_gd_events(
669669
return cast(dict[str, Any], await self.async_request("get", url))
670670

671671
# keep location_id for now for backward compatibility with existing hilo branch
672-
async def get_seasons(self, location_id: int) -> dict[str, Any]:
672+
async def get_seasons(self, location_id: int) -> list[dict[str, Any]]:
673673
"""This will return the rewards and current season total
674674
https://api.hiloenergie.com/challenge/v1/api/Locations/XXXX/Seasons
675675
[
@@ -694,7 +694,7 @@ async def get_seasons(self, location_id: int) -> dict[str, Any]:
694694
seasons = await self.async_request("get", url)
695695
LOG.debug("Seasons API response: %s", seasons)
696696

697-
all_seasons = []
697+
all_seasons: list[dict[str, Any]] = []
698698

699699
for season_data in seasons:
700700
season = season_data.get("season")

0 commit comments

Comments
 (0)