René's URL Explorer Experiment


Title: Enable `reportUnreachable` in basedpyright by Copilot · Pull Request #1376 · usethis-python/usethis-python · GitHub

Open Graph Title: Enable `reportUnreachable` in basedpyright by Copilot · Pull Request #1376 · usethis-python/usethis-python

X Title: Enable `reportUnreachable` in basedpyright by Copilot · Pull Request #1376 · usethis-python/usethis-python

Description: Remove reportUnreachable = false from global [tool.basedpyright] config Add [[tool.basedpyright.executionEnvironments]] for tests/ keeping it disabled there Remove unreachable isinstance checks in _validated_set and _validated_append in src/usethis/_file/ini/io_.py Remove stale test_int test whose expectation (TypeError on int input) depended on the removed isinstance guard All 74 ini tests pass; prek and basedpyright report 0 errors Original prompt This section details on the original issue you should resolve enable reportUnreachable in basedpyright Keep it disabled for the tests in pyproject.toml [[tool.basedpyright.executionEnvironments]] root = "tests" reportUnreachable = false But you can remove this line from the more generic disable list. reportUnreachable = false The only violations are for INI integrations where we're raising an error - we can just remove this unnecessary error check. Comments on the Issue (you are @copilot in this section) Fixes #1337 🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Open Graph Description: Remove reportUnreachable = false from global [tool.basedpyright] config Add [[tool.basedpyright.executionEnvironments]] for tests/ keeping it disabled there Remove unreachable isinstance checks i...

X Description: Remove reportUnreachable = false from global [tool.basedpyright] config Add [[tool.basedpyright.executionEnvironments]] for tests/ keeping it disabled there Remove unreachable isinstance checks i...

Opengraph URL: https://github.com/usethis-python/usethis-python/pull/1376

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d369fb16-8f7a-b893-7663-a29152251d9a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD82A:2DC8D1:8B18C4:BC45BF:6A4EC8C0
html-safe-nonce01781c99ba3eb6add70b5d03c7f38afc4ad51cd2baf365f2e39452e0ced19cb8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODJBOjJEQzhEMTo4QjE4QzQ6QkM0NUJGOjZBNEVDOEMwIiwidmlzaXRvcl9pZCI6IjY5OTAxNzY4NDUzMzAzNzI0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace8c2c289bc3905a97f165eecebe579257f6492d5bffa22e031388ce8ba7b2d2c
hovercard-subject-tagpull_request:3381869309
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/usethis-python/usethis-python/pull/1376/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:altRemove reportUnreachable = false from global [tool.basedpyright] config Add [[tool.basedpyright.executionEnvironments]] for tests/ keeping it disabled there Remove unreachable isinstance checks i...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git
octolytics-dimension-user_id216362695
octolytics-dimension-user_loginusethis-python
octolytics-dimension-repository_id842189705
octolytics-dimension-repository_nwousethis-python/usethis-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id842189705
octolytics-dimension-repository_network_root_nwousethis-python/usethis-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1376/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fusethis-python%2Fusethis-python%2Fpull%2F1376%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F1376%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=usethis-python%2Fusethis-python
Reloadhttps://github.com/usethis-python/usethis-python/pull/1376/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1376/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1376/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1376/files
usethis-python https://github.com/usethis-python
usethis-pythonhttps://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
Sign up for GitHub https://github.com/signup?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fusethis-python%2Fusethis-python%2Fissues%2Fnew%2Fchoose
nathanjmcdougallhttps://github.com/nathanjmcdougall
mainhttps://github.com/usethis-python/usethis-python/tree/main
copilot/enable-report-unreachable-basedpyrighthttps://github.com/usethis-python/usethis-python/tree/copilot/enable-report-unreachable-basedpyright
Conversation 6 https://github.com/usethis-python/usethis-python/pull/1376
Commits 6 https://github.com/usethis-python/usethis-python/pull/1376/commits
Checks 20 https://github.com/usethis-python/usethis-python/pull/1376/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1376/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1376/files
Enable reportUnreachable in basedpyright https://github.com/usethis-python/usethis-python/pull/1376/files#top
Show all changes 6 commits https://github.com/usethis-python/usethis-python/pull/1376/files
56f33d5 Initial plan Copilot Mar 11, 2026 https://github.com/usethis-python/usethis-python/pull/1376/commits/56f33d56ab05fae110b43e5602a8597f810e03e9
c9bd75c Enable reportUnreachable in basedpyright; fix unreachable INI value c… Copilot Mar 11, 2026 https://github.com/usethis-python/usethis-python/pull/1376/commits/c9bd75c3d83f903a7f7973e86a5a335699a82fcf
734ca50 Merge branch 'main' into copilot/enable-report-unreachable-basedpyright nathanjmcdougall Mar 12, 2026 https://github.com/usethis-python/usethis-python/pull/1376/commits/734ca50f3796cf3ffd9da83c98e0eba7a7ca83d8
0563e68 Merge branch 'main' into copilot/enable-report-unreachable-basedpyright nathanjmcdougall Mar 12, 2026 https://github.com/usethis-python/usethis-python/pull/1376/commits/0563e68bb507caf27756261548e0ee767cbea7aa
7232d4b Merge branch 'main' into copilot/enable-report-unreachable-basedpyright nathanjmcdougall Mar 12, 2026 https://github.com/usethis-python/usethis-python/pull/1376/commits/7232d4b54608044e1e6742704909fe48228da4f9
918602e Remove stale test_int test for removed isinstance validation Copilot Mar 12, 2026 https://github.com/usethis-python/usethis-python/pull/1376/commits/918602e597d181174cac167058d9fb21c64e518b
Clear filters https://github.com/usethis-python/usethis-python/pull/1376/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1376/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1376/files
pyproject.toml https://github.com/usethis-python/usethis-python/pull/1376/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
io_.py https://github.com/usethis-python/usethis-python/pull/1376/files#diff-680425dcb2a48b3e343c57178815867194841e035f7fad833eb702438b48ca0f
test_ini_io_.py https://github.com/usethis-python/usethis-python/pull/1376/files#diff-02d703837b1c20442da64294a97be8ca0630eff99385ce67a6256bc889599e24
pyproject.tomlhttps://github.com/usethis-python/usethis-python/pull/1376/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/usethis-python/usethis-python/blob/918602e597d181174cac167058d9fb21c64e518b/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1376/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1376/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/usethis-python/usethis-python/pull/1376/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
src/usethis/_file/ini/io_.pyhttps://github.com/usethis-python/usethis-python/pull/1376/files#diff-680425dcb2a48b3e343c57178815867194841e035f7fad833eb702438b48ca0f
View file https://github.com/usethis-python/usethis-python/blob/918602e597d181174cac167058d9fb21c64e518b/src/usethis/_file/ini/io_.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1376/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1376/files#diff-680425dcb2a48b3e343c57178815867194841e035f7fad833eb702438b48ca0f
https://github.com/usethis-python/usethis-python/pull/1376/files#diff-680425dcb2a48b3e343c57178815867194841e035f7fad833eb702438b48ca0f
https://github.com/usethis-python/usethis-python/pull/1376/files#diff-680425dcb2a48b3e343c57178815867194841e035f7fad833eb702438b48ca0f
tests/usethis/_file/ini/test_ini_io_.pyhttps://github.com/usethis-python/usethis-python/pull/1376/files#diff-02d703837b1c20442da64294a97be8ca0630eff99385ce67a6256bc889599e24
View file https://github.com/usethis-python/usethis-python/blob/918602e597d181174cac167058d9fb21c64e518b/tests/usethis/_file/ini/test_ini_io_.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1376/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1376/files#diff-02d703837b1c20442da64294a97be8ca0630eff99385ce67a6256bc889599e24
https://github.com/usethis-python/usethis-python/pull/1376/files#diff-02d703837b1c20442da64294a97be8ca0630eff99385ce67a6256bc889599e24
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1376/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.