holidays 0.86__py3-none-any.whl → 0.87__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -387,43 +387,45 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
387
387
  self._add_holiday_3rd_mon_of_jan(tr("Martin Luther King Jr. Day"))
388
388
 
389
389
  if self._year >= 1879 and self.subdiv not in {
390
- "AK",
391
390
  "AL",
392
391
  "AR",
393
- "AZ",
394
- "CA",
395
- "CO",
396
392
  "DE",
397
393
  "FL",
398
394
  "GA",
399
- "HI",
400
- "ID",
401
395
  "IN",
402
- "MD",
403
- "MN",
404
- "MT",
405
- "NJ",
406
396
  "NM",
407
- "OH",
408
- "OK",
409
- "OR",
410
- "PA",
411
- "PR",
412
- "SC",
413
- "TN",
414
- "TX",
415
- "UT",
416
- "VA",
417
397
  "VI",
418
- "VT",
419
- "WA",
420
- "WV",
421
- "WY",
422
398
  }:
423
399
  # Washington's Birthday.
424
400
  name = tr("Washington's Birthday")
425
401
  if self._year >= 1971:
426
- self._add_holiday_3rd_mon_of_feb(name)
402
+ if self.subdiv not in {
403
+ "AK",
404
+ "AZ",
405
+ "CA",
406
+ "CO",
407
+ "HI",
408
+ "ID",
409
+ "MD",
410
+ "MN",
411
+ "MT",
412
+ "NJ",
413
+ "OH",
414
+ "OK",
415
+ "OR",
416
+ "PA",
417
+ "PR",
418
+ "SC",
419
+ "TN",
420
+ "TX",
421
+ "UT",
422
+ "VA",
423
+ "VT",
424
+ "WA",
425
+ "WV",
426
+ "WY",
427
+ }:
428
+ self._add_holiday_3rd_mon_of_feb(name)
427
429
  else:
428
430
  self._add_holiday_feb_22(name)
429
431
 
@@ -494,13 +496,9 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
494
496
  tr("Martin Luther King, Jr & Robert E. Lee's Birthday")
495
497
  )
496
498
 
497
- if self._year >= 1879:
499
+ if self._year >= 1971:
498
500
  # George Washington & Thomas Jefferson's Birthday.
499
- name = tr("George Washington & Thomas Jefferson's Birthday")
500
- if self._year >= 1971:
501
- self._add_holiday_3rd_mon_of_feb(name)
502
- else:
503
- self._add_holiday_feb_22(name)
501
+ self._add_holiday_3rd_mon_of_feb(tr("George Washington & Thomas Jefferson's Birthday"))
504
502
 
505
503
  if self._year >= 1866:
506
504
  # Confederate Memorial Day.
@@ -529,13 +527,11 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
529
527
  else tr("Dr. Martin Luther King Jr. and Robert E. Lee's Birthdays")
530
528
  )
531
529
 
532
- if self._year >= 1879:
533
- # George Washington's Birthday and Daisy Gatson Bates Day.
534
- name = tr("George Washington's Birthday and Daisy Gatson Bates Day")
535
- if self._year >= 1971:
536
- self._add_holiday_3rd_mon_of_feb(name)
537
- else:
538
- self._add_holiday_feb_22(name)
530
+ if self._year >= 1971:
531
+ self._add_holiday_3rd_mon_of_feb(
532
+ # George Washington's Birthday and Daisy Gatson Bates Day.
533
+ tr("George Washington's Birthday and Daisy Gatson Bates Day")
534
+ )
539
535
 
540
536
  def _populate_subdiv_as_public_holidays(self):
541
537
  if self._year >= 1901:
@@ -635,6 +631,15 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
635
631
  # Good Friday.
636
632
  self._add_good_friday(tr("Good Friday"))
637
633
 
634
+ if 1971 <= self._year <= 2009:
635
+ self._add_holiday_3rd_mon_of_feb(
636
+ # Presidents' Day.
637
+ tr("Presidents' Day")
638
+ if self._year >= 1990
639
+ # Washington's Birthday.
640
+ else tr("Washington's Birthday")
641
+ )
642
+
638
643
  if self._year >= 2008 and self._year % 2 == 0:
639
644
  # Election Day.
640
645
  self._add_holiday_1_day_past_1st_mon_of_nov(tr("Election Day"))
@@ -684,11 +689,13 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
684
689
  else tr("Robert E. Lee's Birthday")
685
690
  )
686
691
 
687
- if self._year >= 1879:
688
- self._add_holiday(
692
+ if self._year >= 1971:
693
+ self._add_observed(
694
+ self._christmas_day,
689
695
  # Washington's Birthday.
690
- tr("Washington's Birthday"),
691
- self._get_observed_date(self._christmas_day, rule=GA_IN_WASHINGTON_BIRTHDAY),
696
+ name=tr("Washington's Birthday"),
697
+ rule=GA_IN_WASHINGTON_BIRTHDAY,
698
+ show_observed_label=False,
692
699
  )
693
700
 
694
701
  def _populate_subdiv_gu_public_holidays(self):
@@ -780,11 +787,13 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
780
787
  # Lincoln's Birthday.
781
788
  self._add_holiday_1_day_past_4th_thu_of_nov(tr("Lincoln's Birthday"))
782
789
 
783
- if self._year >= 1879:
784
- self._add_holiday(
790
+ if self._year >= 1971:
791
+ self._add_observed(
792
+ self._christmas_day,
785
793
  # Washington's Birthday.
786
- tr("Washington's Birthday"),
787
- self._get_observed_date(self._christmas_day, rule=GA_IN_WASHINGTON_BIRTHDAY),
794
+ name=tr("Washington's Birthday"),
795
+ rule=GA_IN_WASHINGTON_BIRTHDAY,
796
+ show_observed_label=False,
788
797
  )
789
798
 
790
799
  def _populate_subdiv_ks_public_holidays(self):