| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:0284ce6d-fbed-ab91-72fa-a0b3524269ff |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A126:1EF3D5:C3E654:105BEF0:6A4D7A6B |
| html-safe-nonce | fa995f4fd0bbe12da62986bfe1a79ee67ba0120902417ab312067377cdea252b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTI2OjFFRjNENTpDM0U2NTQ6MTA1QkVGMDo2QTREN0E2QiIsInZpc2l0b3JfaWQiOiI2NjA3NTcyMjI1MDY5ODYwOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3b518f2290779a702b94358f6bdef40281fb74cfd0c0798d8902d91fdc8e3004 |
| hovercard-subject-tag | pull_request:3500683177 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/usethis-python/usethis-python/1890/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/b454556ebb22f4ff4f4e44e347432297a93df97bae0039ebd276443035c67afe/usethis-python/usethis-python/pull/1890 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b454556ebb22f4ff4f4e44e347432297a93df97bae0039ebd276443035c67afe/usethis-python/usethis-python/pull/1890 |
| og:image:alt | When an if-elif chain branches on a backend enum, identical statements appearing in multiple sibling branches signal a structural problem — the shared logic should be hoisted to an outer combined m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Copilot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| turbo-cache-control | no-cache |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/usethis-python/usethis-python/pull/1890#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1890 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1890 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=usethis-python%2Fusethis-python |
| Reload | https://github.com/usethis-python/usethis-python/pull/1890 |
| Reload | https://github.com/usethis-python/usethis-python/pull/1890 |
| Reload | https://github.com/usethis-python/usethis-python/pull/1890 |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1890 |
|
usethis-python
| https://github.com/usethis-python |
| usethis-python | https://github.com/usethis-python/usethis-python |
|
Notifications
| https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python |
|
Fork
5
| https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python |
|
Star
19
| https://github.com/login?return_to=%2Fusethis-python%2Fusethis-python |
|
Code
| https://github.com/usethis-python/usethis-python |
|
Issues
163
| https://github.com/usethis-python/usethis-python/issues |
|
Pull requests
4
| https://github.com/usethis-python/usethis-python/pulls |
|
Actions
| https://github.com/usethis-python/usethis-python/actions |
|
Security and quality
0
| https://github.com/usethis-python/usethis-python/security |
|
Insights
| https://github.com/usethis-python/usethis-python/pulse |
|
Code
| https://github.com/usethis-python/usethis-python |
|
Issues
| https://github.com/usethis-python/usethis-python/issues |
|
Pull requests
| https://github.com/usethis-python/usethis-python/pulls |
|
Actions
| https://github.com/usethis-python/usethis-python/actions |
|
Security and quality
| https://github.com/usethis-python/usethis-python/security |
|
Insights
| https://github.com/usethis-python/usethis-python/pulse |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| main | https://github.com/usethis-python/usethis-python/tree/main |
| copilot/refactor-uninstall-pre-commit-hooks-logic | https://github.com/usethis-python/usethis-python/tree/copilot/refactor-uninstall-pre-commit-hooks-logic |
| Conversation | https://github.com/usethis-python/usethis-python/pull/1890 |
| Commits4 (4) | https://github.com/usethis-python/usethis-python/pull/1890/commits |
| Checks | https://github.com/usethis-python/usethis-python/pull/1890/checks |
| Files changed | https://github.com/usethis-python/usethis-python/pull/1890/files |
| refactor: hoist shared if-else logic; document principle in skill | https://github.com/usethis-python/usethis-python/pull/1890#top |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| main | https://github.com/usethis-python/usethis-python/tree/main |
| copilot/refactor-uninstall-pre-commit-hooks-logic | https://github.com/usethis-python/usethis-python/tree/copilot/refactor-uninstall-pre-commit-hooks-logic |
|
| https://github.com/apps/copilot-swe-agent |
| Copilot | https://github.com/apps/copilot-swe-agent |
| Apr 8, 2026 | https://github.com/usethis-python/usethis-python/pull/1890#issue-4221352335 |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1890 |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1890 |
|
| https://github.com/apps/copilot-swe-agent |
| Initial plan | https://github.com/usethis-python/usethis-python/pull/1890/commits/84a29d0b5cdf881ad4e99571336e0e1e17745de6 |
| 84a29d0 | https://github.com/usethis-python/usethis-python/pull/1890/commits/84a29d0b5cdf881ad4e99571336e0e1e17745de6 |
|
| https://github.com/apps/copilot-swe-agent |
| Copilot | https://github.com/apps/copilot-swe-agent |
| Copilot | https://github.com/apps/copilot-swe-agent |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| Apr 8, 2026 | https://github.com/usethis-python/usethis-python/pull/1890#event-24277971670 |
| started work | https://github.com/usethis-python/usethis-python/sessions/666ce694-85bc-4b4e-9d64-4dd29447b897 |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| April 8, 2026 00:32 | https://github.com/usethis-python/usethis-python/pull/1890#event-24277974011 |
|
View session
| https://github.com/usethis-python/usethis-python/sessions/666ce694-85bc-4b4e-9d64-4dd29447b897 |
|
| https://github.com/apps/copilot-swe-agent |
| Copilot | https://github.com/apps/copilot-swe-agent |
| Apr 8, 2026 | https://github.com/usethis-python/usethis-python/pull/1890#event-24277974246 |
|
agent: structure if-else nesting to avoid duplicated string literals
#1869
| https://github.com/usethis-python/usethis-python/issues/1869 |
|
| https://github.com/apps/copilot-swe-agent |
|
| https://github.com/nathanjmcdougall |
| refactor: hoist shared tick_print in remove_deps_from_group; add if-e… | https://github.com/usethis-python/usethis-python/pull/1890/commits/d24b8e63bf2c572c54b7a0244eebdb26614e4e5e |
| d24b8e6 | https://github.com/usethis-python/usethis-python/pull/1890/commits/d24b8e63bf2c572c54b7a0244eebdb26614e4e5e |
| https://github.com/usethis-python/usethis-python/sessions/666ce694-85bc-4b4e-9d64-4dd29447b897 | https://github.com/usethis-python/usethis-python/sessions/666ce694-85bc-4b4e-9d64-4dd29447b897 |
|
| https://github.com/apps/copilot-swe-agent |
| Copilot | https://github.com/apps/copilot-swe-agent |
| Apr 8, 2026 | https://github.com/usethis-python/usethis-python/pull/1890#event-24278122928 |
| finished work | https://github.com/usethis-python/usethis-python/sessions/666ce694-85bc-4b4e-9d64-4dd29447b897 |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| April 8, 2026 00:40 | https://github.com/usethis-python/usethis-python/pull/1890#event-24278126643 |
|
| https://github.com/apps/copilot-swe-agent |
| Copilot | https://github.com/apps/copilot-swe-agent |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| April 8, 2026 00:40 | https://github.com/usethis-python/usethis-python/pull/1890#event-24278126661 |
| https://github.com/nathanjmcdougall |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| April 8, 2026 00:44 | https://github.com/usethis-python/usethis-python/pull/1890#event-24278186035 |
|
| https://github.com/apps/copilot-swe-agent |
| Copilot | https://github.com/apps/copilot-swe-agent |
| temporarily deployed | https://github.com/usethis-python/usethis-python/actions/runs/24111417064/job/70347035712 |
| April 8, 2026 00:44 | https://github.com/usethis-python/usethis-python/pull/1890#event-24278186338 |
| https://github.com/nathanjmcdougall |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
|
Apr 8, 2026
| https://github.com/usethis-python/usethis-python/pull/1890#pullrequestreview-4072201151 |
|
View reviewed changes
| https://github.com/usethis-python/usethis-python/pull/1890/files/d24b8e63bf2c572c54b7a0244eebdb26614e4e5e |
| https://github.com/apps/codspeed-hq |
| codspeed-hq | https://github.com/apps/codspeed-hq |
| Apr 8, 2026 | https://github.com/usethis-python/usethis-python/pull/1890#issuecomment-4203094868 |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1890 |
| d5958d5 | https://github.com/usethis-python/usethis-python/commit/d5958d5bd98be303415af14d14c3bb000630208b |
| 9c6a728 | https://github.com/usethis-python/usethis-python/commit/9c6a728e848db9c503483aacb7e387ba40b6127b |
|
| https://codspeed.io/usethis-python/usethis-python/branches/copilot%2Frefactor-uninstall-pre-commit-hooks-logic?utm_source=github&utm_medium=comment-v2&utm_content=button |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1890 |
| https://github.com/apps/codecov |
| codecov | https://github.com/apps/codecov |
| Apr 8, 2026 | https://github.com/usethis-python/usethis-python/pull/1890#issuecomment-4203098600 |
| Codecov | https://app.codecov.io/gh/usethis-python/usethis-python/pull/1890?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=usethis-python |
| Let us know! | https://github.com/codecov/feedback/issues/255 |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1890 |
|
| https://github.com/nathanjmcdougall |
| Merge branch 'main' into copilot/refactor-uninstall-pre-commit-hooks-… | https://github.com/usethis-python/usethis-python/pull/1890/commits/5bf5a180646e78825c553395c56faec5a87ef02c |
| 5bf5a18 | https://github.com/usethis-python/usethis-python/pull/1890/commits/5bf5a180646e78825c553395c56faec5a87ef02c |
| https://github.com/nathanjmcdougall |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| temporarily deployed | https://github.com/usethis-python/usethis-python/actions/runs/24111833335/job/70347861691 |
| April 8, 2026 00:54 | https://github.com/usethis-python/usethis-python/pull/1890#event-24278374005 |
| GitHub Actions | https://github.com/apps/github-actions |
|
| https://github.com/nathanjmcdougall |
| Fix newline issue | https://github.com/usethis-python/usethis-python/pull/1890/commits/d5958d5bd98be303415af14d14c3bb000630208b |
| d5958d5 | https://github.com/usethis-python/usethis-python/pull/1890/commits/d5958d5bd98be303415af14d14c3bb000630208b |
| https://github.com/nathanjmcdougall |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| temporarily deployed | https://github.com/usethis-python/usethis-python/actions/runs/24113138902/job/70351765664 |
| April 8, 2026 01:41 | https://github.com/usethis-python/usethis-python/pull/1890#event-24279112869 |
| GitHub Actions | https://github.com/apps/github-actions |
| https://github.com/nathanjmcdougall |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| 5f17d9a | https://github.com/usethis-python/usethis-python/commit/5f17d9a1aa7049bf48d879441bdf33b8ce606f74 |
| Apr 8, 2026 | https://github.com/usethis-python/usethis-python/pull/1890#event-24280189204 |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1890 |
| https://github.com/nathanjmcdougall |
| nathanjmcdougall | https://github.com/nathanjmcdougall |
| April 8, 2026 02:43 | https://github.com/usethis-python/usethis-python/pull/1890#event-24280189683 |
| https://github.co/hiddenchars |
| https://github.com/usethis-python/usethis-python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1890 |
|
| https://github.com/nathanjmcdougall |
|
nathanjmcdougall
| https://github.com/nathanjmcdougall |
|
| https://github.com/usethis-python/usethis-python/pull/1890/files/d24b8e63bf2c572c54b7a0244eebdb26614e4e5e |
|
| https://github.com/nathanjmcdougall |
|
nathanjmcdougall
| https://github.com/nathanjmcdougall |
|
Copilot code review
| https://github.com/apps/copilot-swe-agent |
|
Copilot
| https://github.com/apps/copilot-swe-agent |
|
agent: structure if-else nesting to avoid duplicated string literals
| https://github.com/usethis-python/usethis-python/issues/1869 |
| Please reload this page | https://github.com/usethis-python/usethis-python/pull/1890 |
|
| https://github.com/apps/copilot-swe-agent |
|
| https://github.com/nathanjmcdougall |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |