Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider a Holiday class #1

Merged
merged 36 commits into from
Sep 21, 2014
Merged

Consider a Holiday class #1

merged 36 commits into from
Sep 21, 2014

Conversation

jaraco
Copy link
Owner

@jaraco jaraco commented May 9, 2014

The implementation of this Holiday class enables an individual calendar implementer to more accurately describe each holiday using a first-class object. These changes demonstrate how the use of such a class gives more flexibility about the definition of each holiday, including when it is observed.

As a result, this fixes (or provides a mechanism to fix) workalendar#76, workalendar#77, and workalendar#78.

As much as possible, these changes attempt to maintain backward compatibility, but it's plausible that some users will find the changes incompatible with their customizations.

All the tests pass (on Python 3 at least).

I'm not necessarily requesting that these changes be merged as-is, but I did want to collect these changes as a concrete proposal for consideration and discussion. Accepting changes like these would be essential for me to adopt workalendar for my application.

I look forward to your feedback.

jaraco added 30 commits May 9, 2014 10:00
--HG--
extra : amend_source : e2b1f36319875798bf21deb3075deab65f9ea230
--HG--
extra : rebase_source : d0ec2a68e9565aaa015984de775b07df1d263189
--HG--
extra : amend_source : f15d243f1146ebf29f8970f2e3159be9265df632
…ame', similar to the original two-tuple. 'indication' and 'weekend_hint' are now optional arguments as are any additional keyword arguments used in construction.
--HG--
extra : amend_source : 8ecc724430c4ea14fdc35f99b014d23c2fff75d1
…ich the default is now defined in the Calendar class.
--HG--
extra : amend_source : f8b6166e815bd352874ac388f7450d4fec93df85
@jaraco jaraco merged commit 63648ed into master Sep 21, 2014
jaraco pushed a commit that referenced this pull request Jan 2, 2018
* Merge ireland.py

* Adding Ireland

* Add Ireland tests

* Add Ireland

* Add Ireland

* Ireland tests

* Ireland changelog
@jaraco jaraco deleted the holiday-class branch January 2, 2018 23:02
jaraco pushed a commit that referenced this pull request Jan 20, 2020
jaraco pushed a commit that referenced this pull request Sep 2, 2022
jaraco pushed a commit that referenced this pull request Feb 10, 2024
fix: 2024 Chinese New Year's Eve issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant