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

BUG: Fix end-date-only TZ logic in holiday.py #370

Merged

Conversation

herebebeasties
Copy link

I don't think anything is actually using this, so hasn't tripped over it yet, but there is what looks like a "copy/pasta" bug in holidays.py that this fixes around handling of the range when the TZ is only specified on the end date. There is a missing assertion for matching start and end date timezones, too (there is currently what ruff calls a "pointless equality check" whose result is not checked).

@herebebeasties herebebeasties changed the title Fix end-date-only TZ logic in holidays.py Fix end-date-only TZ logic in holiday.py Feb 12, 2024
@herebebeasties herebebeasties changed the title Fix end-date-only TZ logic in holiday.py BUG: Fix end-date-only TZ logic in holiday.py Feb 13, 2024
@github-actions github-actions bot added the bug Something isn't working label Feb 13, 2024
@maread99
Copy link
Collaborator

Thanks again @herebebeasties.

I believe the only calendar that uses this module is XKRX. There's been talk for a while (#128) of moving the calendar to hard-coded holidays and a standard implementation. I suspect that would allow the removal of the pandas_extensions directory and everything under it together with (possibly) the korean_lunar_calendar dependency.

@maread99 maread99 merged commit 8d06f54 into gerrymanoim:master Feb 13, 2024
10 checks passed
@herebebeasties herebebeasties deleted the fix_holiday_end_only_tz_logic branch February 14, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants