Skip to content

Commit

Permalink
Merge branch 'master' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFlamm authored Feb 4, 2025
2 parents 4f767c8 + d2cca3d commit a8bed5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pytest==8.3.4
pytest-asyncio==0.25.1
pytest-cov==6.0.0
pytest-aiohttp==1.0.5
mypy==1.13.0
mypy==1.14.1
tenacity==9.0.0
yarl==1.18.3
4 changes: 2 additions & 2 deletions src/pynws/nws.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def get_stations_observations_latest(self: Nws) -> Dict[str, Any]:
)
return cast(Dict[str, Any], res.get("properties"))

async def get_points(self: Nws) -> None:
async def get_points(self: Nws) -> Dict[str, Any]:
"""Saves griddata from latlon."""
if self.latlon is None:
raise NwsError("Latitude and longitude are required")
Expand All @@ -122,7 +122,7 @@ async def get_points(self: Nws) -> None:
self.forecast_zone = properties.get("forecastZone").split("/")[-1]
self.county_zone = properties.get("county").split("/")[-1]
self.fire_weather_zone = properties.get("fireWeatherZone").split("/")[-1]
return properties
return cast(Dict[str, Any], properties)

async def get_detailed_forecast(self: Nws) -> DetailedForecast:
"""Return all forecast data from grid.
Expand Down

0 comments on commit a8bed5e

Please sign in to comment.