We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Labor Day is a holiday. but the information not in the module(holidays) - Taiwan class
The following is my use example, it will raise the Error. Cause the variable this_is_holiday not in tw_holidays.
import holidays from datetime import datetime Taiwan_labor_day = datetime(2024, 5, 1) Double_tenth_Day = datetime(2024, 10, 10) the_day = Taiwan_labor_day tw_holidays = holidays.Taiwan() this_is_holiday = the_day in tw_holidays assert this_is_holiday
The text was updated successfully, but these errors were encountered:
Thanks for reporting this @Curtis081 It seems there is a list of unofficial holidays that hasn't been covered yet.
I've updated the issue title based on that info.
Sorry, something went wrong.
Thank you for your attention and assistance! I have resolved the issue in my project by adding conditional statements.
By the way, there was a small problem with Python inspections: it showed the message "Cannot find reference 'Taiwan' in 'init.py.'"
Thanks again!
No branches or pull requests
Bug Report
Expected & Actual Behavior
Labor Day is a holiday. but the information not in the module(holidays) - Taiwan class
Environment
Additional Context
The following is my use example, it will raise the Error. Cause the variable this_is_holiday not in tw_holidays.
The text was updated successfully, but these errors were encountered: