-
-
Notifications
You must be signed in to change notification settings - Fork 554
Introduce HolidayBase::_is_weekday
method
#2999
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
Conversation
Summary by CodeRabbit
WalkthroughAdded a new helper method Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #2999 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 305 305
Lines 17998 18005 +7
Branches 2323 2323
=========================================
+ Hits 17998 18005 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Why not? 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
holidays/holiday_base.py
(1 hunks)
🧰 Additional context used
🪛 Ruff (0.13.3)
holidays/holiday_base.py
868-868: Missing type annotation for *args
(ANN002)
875-875: Missing type annotation for *args
(ANN002)
⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Test Python 3.14 on windows-latest
🔇 Additional comments (1)
holidays/holiday_base.py (1)
875-875
: Good addition of return type annotation.Explicit return type improves code clarity.
Proposed change
Add
_is_weekday
method as an alias fornot self._is_weekend(*args)
.Inspired by #2992 - on one hand, its use case seems pretty narrow, but on the other hand, why not 🤷 - so I'm marking this as a draft PR for now.
Type of change
holidays
functionality in general)Checklist
make check
locally; all checks and tests passed.