Merge pull request #231 from bedaes/fix-tuple-annotation

Fix tuple expression in type annotation
This commit is contained in:
Bas Nijholt 2021-12-12 02:10:59 +01:00 committed by GitHub
commit 57a032f283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1074,7 +1074,7 @@ class SunLightSettings:
def calculate_noon_and_midnight(
sunset: datetime.datetime, sunrise: datetime.datetime
) -> (datetime.datetime, datetime.datetime):
) -> Tuple[datetime.datetime, datetime.datetime]:
middle = abs(sunset - sunrise) / 2
if sunset > sunrise:
noon = sunrise + middle