mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
Fix tuple expression in type annotation
This commit is contained in:
parent
21f088e825
commit
b4138c7827
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue