Add type ignore error codes [last ones] (#66816)

This commit is contained in:
Marc Mueller
2022-02-18 18:15:57 +01:00
committed by GitHub
parent fcf774ecfc
commit 30e2411761
11 changed files with 27 additions and 23 deletions

View File

@ -116,7 +116,7 @@ def get_astral_event_date(
kwargs["observer_elevation"] = elevation
try:
return getattr(location, event)(date, **kwargs) # type: ignore
return getattr(location, event)(date, **kwargs) # type: ignore[no-any-return]
except ValueError:
# Event never occurs for specified date.
return None