MCPcopy
hub / github.com/vacanza/holidays / _add_observed

Method _add_observed

holidays/countries/tonga.py:94–97  ·  view source on GitHub ↗
(self, dt: date, **kwargs)

Source from the content-addressed store, hash-verified

92 super().__init__(*args, **kwargs)
93
94 def _add_observed(self, dt: date, **kwargs):
95 if self._year >= 2010:
96 kwargs["rule"] = kwargs["rule"] or ALL_TO_NEAREST_MON_LATAM
97 return super()._add_observed(dt, **kwargs)
98
99 def _populate_public_holidays(self):
100 # New Year's Day.

Calls

no outgoing calls

Tested by

no test coverage detected