Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_variable_days(self, year):
days = super(Georgia, self).get_variable_days(year)
days = self.float(days)
days.extend([
(Georgia.get_nth_weekday_in_month(year, 11, FRI, 4),
"Robert E. Lee's Birthday (Observed)"),
])
return days
def get_fixed_holidays(self, year):
days = super(Georgia, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Hawaii(UnitedStates, WesternCalendar):
"""Hawaii"""
pass
class Idaho(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""Idaho"""
def get_variable_days(self, year):
days = super(Idaho, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Idaho, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
(2, 12, "Lincoln's Birthday"),
)
include_thanksgiving_friday = True
def get_variable_days(self, year):
days = super(Illinois, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Illinois, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Indiana(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin,
WashingtonsBirthdayInDecemberMixin):
"""Indiana"""
include_good_friday = True
include_thanksgiving_friday = True
def get_variable_days(self, year):
days = super(Indiana, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Indiana, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
def get_variable_days(self, year):
days = super(Nebraska, self).get_variable_days(year)
days = self.float(days)
days.extend([
(self.get_last_weekday_in_month(year, 4, FRI), "Arbor Day")
])
return days
def get_fixed_holidays(self, year):
days = super(Nebraska, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Nevada(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""Nevada"""
include_thanksgiving_friday = True
def get_variable_days(self, year):
days = super(Nevada, self).get_variable_days(year)
days = self.float(days)
days.extend([
(self.get_last_weekday_in_month(year, 10, FRI), "Nevada Day")
])
return days
def get_fixed_holidays(self, year):
days = super(Nevada, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Minnesota(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""Minnesota"""
include_thanksgiving_friday = True
def get_variable_days(self, year):
days = super(Minnesota, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Minnesota, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Mississippi(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""Mississippi"""
include_thanksgiving_friday = True
include_confederation_day = True
def get_variable_days(self, year):
days = super(Mississippi, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Mississippi, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Missouri(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
def get_variable_days(self, year):
days = super(Maine, self).get_variable_days(year)
days = self.float(days)
days.extend([
self.get_patriots_day(year),
])
return days
def get_fixed_holidays(self, year):
days = super(Maine, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Maryland(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""Maryland"""
include_thanksgiving_friday = True
def get_variable_days(self, year):
days = super(Maryland, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Maryland, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Massachusetts(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin,
PatriotsDayMixin):
class Iowa(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""Iowa"""
include_thanksgiving_friday = True
def get_variable_days(self, year):
days = super(Iowa, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Iowa, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Kansas(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin,
DayAfterChristmasNoFloatMixin):
"""Kansas"""
include_christmas_eve = True
include_thanksgiving_friday = True
def get_variable_days(self, year):
days = super(Kansas, self).get_variable_days(year)
days = self.float(days)
days.extend([
self.get_day_after_christmas(year)
])
return days
def get_fixed_holidays(self, year):
days = super(Kansas, self).get_fixed_holidays(year)
days = self.float(days, year)
class Arizona(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""Arizona"""
def get_variable_days(self, year):
days = super(Arizona, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Arizona, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class Arkansas(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""Arkansas"""
include_christmas_eve = True
def get_variable_days(self, year):
days = super(Arkansas, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(Arkansas, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class California(UnitedStates, WesternCalendar,
FloatToNearestWeekdayMixin, CesarChavezDayMixin):
class NewJersey(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""New Jersey"""
include_good_friday = True
def get_variable_days(self, year):
days = super(NewJersey, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(NewJersey, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class NewMexico(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""New Mexico"""
include_thanksgiving_friday = True
def get_variable_days(self, year):
days = super(NewMexico, self).get_variable_days(year)
days = self.float(days)
return days
def get_fixed_holidays(self, year):
days = super(NewMexico, self).get_fixed_holidays(year)
days = self.float(days, year)
return days
class NewYork(UnitedStates, WesternCalendar, FloatToNearestWeekdayMixin):
"""New York"""