Update India holidays: add TG as subdivision alias for Telangana#3376
Update India holidays: add TG as subdivision alias for Telangana#3376arkid15r merged 4 commits intovacanza:devfrom
Conversation
WalkthroughAdded the subdivision alias "TG" → "TS" for Telangana in the India provider, updated the README "Available Countries" table to include Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Pull request overview
Adds support for using "TG" as an alias subdivision code for Telangana ("TS") in the India holiday provider, and documents the alias in the README.
Changes:
- Add
"TG" -> "TS"mapping inIndia.subdivisions_aliasessoIndia(subdiv="TG")routes to the Telangana subdivision holiday population. - Update the README country table to list
"TG"as an alias for Telangana ("TS").
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| holidays/countries/india.py | Adds "TG" subdivision alias mapping to the existing Telangana ("TS") subdivision. |
| README.md | Documents "TG" as an alias under the India → Telangana ("TS") entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PPsyrius
left a comment
There was a problem hiding this comment.
Where exactly does this "TG" code came from? I don't recall seeing this in the ISO 3166-2:IN https://www.iso.org/obp/ui/#iso:code:3166:IN
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #3376 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 310 310
Lines 18580 18580
Branches 2379 2379
=========================================
Hits 18580 18580 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PPsyrius
left a comment
There was a problem hiding this comment.
LGTM 🇮🇳
Feel free to add your name to the CONTRIBUTORS file as well as part of this PR
|
|
@Vikash-Kumar-23, the initial issue #3232 primarily concerns Telangana holidays, rather than the state code. Therefore, it would be incorrect to consider this PR, in its current form, as resolving that issue. |
|
@KJhellico You're right — this PR only adds TG as a subdivision alias and does not address the Telangana holidays themselves. I’ll update the PR description to avoid linking it to #3232 and keep this change scoped to alias support only. For the missing Telangana holidays, I can open a separate PR if that would be helpful. Does that approach sound good? |
Yes. |
arkid15r
left a comment
There was a problem hiding this comment.
@Vikash-Kumar-23 thanks for the contribution!



Proposed change
This PR adds support for "TG" as an alias for Telangana ("TS") in the India holidays module.
Details
Maps subdiv="TG" to TS
Ensures India(subdiv="TG") behaves the same as India(subdiv="TS")
Keeps existing behavior unchanged
Why
In some contexts, Telangana is referred to as "TG" (e.g., recent government usage). Supporting it as an alias improves usability while still keeping "TS" as the primary ISO code.
Verification
India(subdiv="TG", years=2023) returns the same holidays as India(subdiv="TS", years=2023)
Existing subdivisions (e.g., "KA") continue to work as expected
Ran python -m unittest — all tests pass
Files changed
holidays/countries/india.py
README.md
Type of change
holidaysfunctionality in general)Checklist
make checklocally; all checks and tests passed.