Refactor some HolidayBase methods#3079
Conversation
Summary by CodeRabbitRelease Notes
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughAdded a Literal type alias Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (11)📓 Common learnings📚 Learning: 2025-06-15T15:24:53.055ZApplied to files:
📚 Learning: 2025-10-28T17:26:45.090ZApplied to files:
📚 Learning: 2025-08-08T14:37:03.045ZApplied to files:
📚 Learning: 2025-04-03T16:58:27.175ZApplied to files:
📚 Learning: 2025-04-23T09:59:19.886ZApplied to files:
📚 Learning: 2025-03-27T20:10:31.188ZApplied to files:
📚 Learning: 2025-06-16T12:28:31.641ZApplied to files:
📚 Learning: 2025-09-17T15:16:16.192ZApplied to files:
📚 Learning: 2025-09-18T07:01:12.236ZApplied to files:
📚 Learning: 2025-03-30T20:18:46.006ZApplied to files:
🧬 Code graph analysis (1)holidays/holiday_base.py (1)
🪛 Ruff (0.14.6)holidays/holiday_base.py567-567: Avoid specifying long messages outside the exception class (TRY003) 570-570: Avoid specifying long messages outside the exception class (TRY003) 997-997: Boolean-typed positional argument in function definition (FBT001) 997-997: Boolean default positional argument in function definition (FBT002) ⏰ 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). (5)
🔇 Additional comments (2)
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 #3079 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 306 306
Lines 18108 18100 -8
Branches 2309 2307 -2
=========================================
- Hits 18108 18100 -8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



Proposed change
Refactor some
HolidayBasemethods (__getitem__,__getstate__,get_named,pop_named).Type of change
holidaysfunctionality in general)Checklist
make checklocally; all checks and tests passed.