Skip to content

Commit a4a98c5

Browse files
committed
Update code
1 parent a0001e8 commit a4a98c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

holidays/countries/switzerland.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -795,10 +795,9 @@ def _populate_subdiv_zh_optional_holidays(self):
795795
@property
796796
def _vernal_equinox_date(self) -> tuple[int, int]:
797797
"""Return the Vernal Equinox date for Zurich (1902-1951)."""
798-
day = 21
799-
if (self._year >= 1916 and self._year % 4 == 0) or self._year == 1949:
800-
day = 20
801-
return MAR, day
798+
return MAR, 20 if (
799+
(self._year >= 1916 and self._year % 4 == 0) or self._year == 1949
800+
) else 21
802801

803802

804803
class CH(Switzerland):

0 commit comments

Comments
 (0)