René's URL Explorer Experiment


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

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

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

Description: Enables the reportUnnecessaryComparison basedpyright rule and removes the dead code/redundant conditions it surfaces. Changes pyproject.toml: Remove reportUnnecessaryComparison = false override. _core/readme.py: get_project_name() returns str, never None — simplify the content-building branches, removing two dead elif/else arms. bitbucket/pipeweld.py: ParallelItem.parallel is typed as non-optional Parallel — remove four if item.parallel is not None: guards and dedent the inner logic. bitbucket/steps.py: StepItem.step: Step and Step1.step: Step2 are non-optional — remove two redundant if ... is not None filters from list comprehensions. # Before — item.parallel is Parallel, never None if item.parallel is not None: if isinstance(item.parallel.root, schema.ParallelSteps): ... # After if isinstance(item.parallel.root, schema.ParallelSteps): ... Warning Firewall rules blocked me from connecting to one or more addresses (expand for details) I tried to connect to the following addresses, but was blocked by firewall rules: https://mirrors.aliyun.com/pypi/packages/70/1b/4273d02565a4e86f238e9fee23e6c5c3bb7b5c237c63228e1b72451db224/uv-0.9.15-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Triggering command: /home/REDACTED/work/usethis-python/usethis-python/.venv/bin/prek prek run -a ps (http block) If you need me to access, download, or install something from one of these locations, you can either: Configure Actions setup steps to set up my environment, which run before the firewall is enabled Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only) Original prompt This section details on the original issue you should resolve enable reportUnnecessaryComparison in basedpyright Comments on the Issue (you are @copilot in this section) @nathanjmcdougall We should be able to remove unnecessary conditions and/or dead code by complying with this rule. Fixes #1334 📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Open Graph Description: Enables the reportUnnecessaryComparison basedpyright rule and removes the dead code/redundant conditions it surfaces. Changes pyproject.toml: Remove reportUnnecessaryComparison = false override. _...

X Description: Enables the reportUnnecessaryComparison basedpyright rule and removes the dead code/redundant conditions it surfaces. Changes pyproject.toml: Remove reportUnnecessaryComparison = false override. _...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:578293ac-b36d-d4ba-45d4-80bc75e9bcee
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB250:F420:180821:214376:6A4DB8D4
html-safe-nonce6eae7abc9b3abc246b0f956e713187fba2119224ca376a7ca3d41b91f406d213
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjUwOkY0MjA6MTgwODIxOjIxNDM3Njo2QTREQjhENCIsInZpc2l0b3JfaWQiOiI4NjA1NTU2NzY4NTIzNTMyNTAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1577e9fbabf6f29b4fd6a504af0eb4cd968721d68e5d08ad487931856f590cca
hovercard-subject-tagpull_request:3392524866
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/1399/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:altEnables the reportUnnecessaryComparison basedpyright rule and removes the dead code/redundant conditions it surfaces. Changes pyproject.toml: Remove reportUnnecessaryComparison = false override. _...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
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
release32f7b614aca06e6bbd89842b1370df1328264f68
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/usethis-python/usethis-python/pull/1399/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%2F1399%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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2F1399%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/1399/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1399/files
Reloadhttps://github.com/usethis-python/usethis-python/pull/1399/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1399/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-unnecessary-comparisonhttps://github.com/usethis-python/usethis-python/tree/copilot/enable-report-unnecessary-comparison
Conversation 2 https://github.com/usethis-python/usethis-python/pull/1399
Commits 2 https://github.com/usethis-python/usethis-python/pull/1399/commits
Checks 20 https://github.com/usethis-python/usethis-python/pull/1399/checks
Files changed https://github.com/usethis-python/usethis-python/pull/1399/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1399/files
Enable reportUnnecessaryComparison in basedpyright https://github.com/usethis-python/usethis-python/pull/1399/files#top
Show all changes 2 commits https://github.com/usethis-python/usethis-python/pull/1399/files
b0b821f Initial plan Copilot Mar 13, 2026 https://github.com/usethis-python/usethis-python/pull/1399/commits/b0b821fc49d71ae2cd8f01943ade1e96a628ede6
f01722a Enable reportUnnecessaryComparison in basedpyright and fix violations Copilot Mar 13, 2026 https://github.com/usethis-python/usethis-python/pull/1399/commits/f01722ab6f382714731a604a28087642b2f17bf5
Clear filters https://github.com/usethis-python/usethis-python/pull/1399/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1399/files
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1399/files
pyproject.toml https://github.com/usethis-python/usethis-python/pull/1399/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
readme.py https://github.com/usethis-python/usethis-python/pull/1399/files#diff-0be057c931cd48396d7e89acf2b40a4107a7617460d1f2daf7b688688fa6a801
pipeweld.py https://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
steps.py https://github.com/usethis-python/usethis-python/pull/1399/files#diff-157eb8acd88d2ce77bab7ff7e2d87706c6763e74a9305e658f2fa82f156ef43c
pyproject.tomlhttps://github.com/usethis-python/usethis-python/pull/1399/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/usethis-python/usethis-python/blob/f01722ab6f382714731a604a28087642b2f17bf5/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1399/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
src/usethis/_core/readme.pyhttps://github.com/usethis-python/usethis-python/pull/1399/files#diff-0be057c931cd48396d7e89acf2b40a4107a7617460d1f2daf7b688688fa6a801
View file https://github.com/usethis-python/usethis-python/blob/f01722ab6f382714731a604a28087642b2f17bf5/src/usethis/_core/readme.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1399/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-0be057c931cd48396d7e89acf2b40a4107a7617460d1f2daf7b688688fa6a801
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-0be057c931cd48396d7e89acf2b40a4107a7617460d1f2daf7b688688fa6a801
src/usethis/_integrations/ci/bitbucket/pipeweld.pyhttps://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
View file https://github.com/usethis-python/usethis-python/blob/f01722ab6f382714731a604a28087642b2f17bf5/src/usethis/_integrations/ci/bitbucket/pipeweld.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1399/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-31e84deca1e3a0c223667c1d677f7aa2257a9813d0da79f899330c90063e901a
src/usethis/_integrations/ci/bitbucket/steps.pyhttps://github.com/usethis-python/usethis-python/pull/1399/files#diff-157eb8acd88d2ce77bab7ff7e2d87706c6763e74a9305e658f2fa82f156ef43c
View file https://github.com/usethis-python/usethis-python/blob/f01722ab6f382714731a604a28087642b2f17bf5/src/usethis/_integrations/ci/bitbucket/steps.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/usethis-python/usethis-python/pull/1399/{{ revealButtonHref }}
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-157eb8acd88d2ce77bab7ff7e2d87706c6763e74a9305e658f2fa82f156ef43c
https://github.com/usethis-python/usethis-python/pull/1399/files#diff-157eb8acd88d2ce77bab7ff7e2d87706c6763e74a9305e658f2fa82f156ef43c
Please reload this pagehttps://github.com/usethis-python/usethis-python/pull/1399/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.