Skip to content

Commit

Permalink
Todo Improved literal string inference
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Dec 13, 2024
1 parent e62d623 commit c49580e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/nws/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ async def async_added_to_hass(self) -> None:
if (coordinator := self.forecast_coordinators[forecast_type]) is None:
continue
if TYPE_CHECKING:
# TODO Literal inference
forecast_type = cast(Literal["twice_daily", "hourly"], forecast_type)
self.unsub_forecast[forecast_type] = coordinator.async_add_listener(
partial(self._handle_forecast_update, forecast_type)
Expand Down

0 comments on commit c49580e

Please sign in to comment.