René's URL Explorer Experiment


Title: Let `SupportsDunderLT` return `SupportsBool` instead of `bool`. by randolf-scholz · Pull Request #12939 · python/typeshed · GitHub

Open Graph Title: Let `SupportsDunderLT` return `SupportsBool` instead of `bool`. by randolf-scholz · Pull Request #12939 · python/typeshed

X Title: Let `SupportsDunderLT` return `SupportsBool` instead of `bool`. by randolf-scholz · Pull Request #12939 · python/typeshed

Description: Collection of library stubs for Python, with static types - Let `SupportsDunderLT` return `SupportsBool` instead of `bool`. by randolf-scholz · Pull Request #12939 · python/typeshed

Open Graph Description: Fixes #12562, alternative to #12573. Introduces a new protocol in _typeshed/__init__.pyi class SupportsBool(Protocol): def __bool__(self) -> bool: ... Changes SupportsDunderLT and variants t...

X Description: Fixes #12562, alternative to #12573. Introduces a new protocol in _typeshed/__init__.pyi class SupportsBool(Protocol): def __bool__(self) -> bool: ... Changes SupportsDunderLT and varian...

Opengraph URL: https://github.com/python/typeshed/pull/12939

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f778b8a7-cb2f-96f7-e4d7-0a3c58074c8b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCC32:1D7BA0:62C243:8468AC:6B00349A
html-safe-nonce263144f882bdcb3616d88aeee5290531c28903a2aa008b5a4679c5273d5980fa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzMyOjFEN0JBMDo2MkMyNDM6ODQ2OEFDOjZCMDAzNDlBIiwidmlzaXRvcl9pZCI6Ijc0MTc5MTA5MzQzNzY1NTk3NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9fa376cc66505893a1e7aa2da0c1d9fb7c740c5f81ea0510310a7281fb994589
hovercard-subject-tagpull_request:2158091788
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/typeshed/12939/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d53a7b6390fab92b75f331d2ef129fbd8b2308e823f13a134d9eb89ca26c7268/python/typeshed/pull/12939
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d53a7b6390fab92b75f331d2ef129fbd8b2308e823f13a134d9eb89ca26c7268/python/typeshed/pull/12939
og:image:altFixes #12562, alternative to #12573. Introduces a new protocol in _typeshed/__init__.pyi class SupportsBool(Protocol): def __bool__(self) -> bool: ... Changes SupportsDunderLT and variants t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerandolf-scholz
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-cache
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/typeshed/pull/12939#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
Sign uphttps://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=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/12939
Reloadhttps://github.com/python/typeshed/pull/12939
Reloadhttps://github.com/python/typeshed/pull/12939
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests251 (251)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
srittauhttps://github.com/srittau
python:mainhttps://github.com/python/typeshed/tree/main
randolf-scholz:supports_dunder_lt_supportsboolhttps://github.com/randolf-scholz/typeshed/tree/supports_dunder_lt_supportsbool
Conversationhttps://github.com/python/typeshed/pull/12939
Commits8 (8)https://github.com/python/typeshed/pull/12939/commits
Checkshttps://github.com/python/typeshed/pull/12939/checks
Files changedhttps://github.com/python/typeshed/pull/12939/files
Let SupportsDunderLT return SupportsBool instead of bool.https://github.com/python/typeshed/pull/12939#top
srittauhttps://github.com/srittau
python:mainhttps://github.com/python/typeshed/tree/main
randolf-scholz:supports_dunder_lt_supportsboolhttps://github.com/randolf-scholz/typeshed/tree/supports_dunder_lt_supportsbool
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Nov 1, 2024https://github.com/python/typeshed/pull/12939#issue-2629063833
Please reload this pagehttps://github.com/python/typeshed/pull/12939
#12562https://github.com/python/typeshed/issues/12562
#12573https://github.com/python/typeshed/pull/12573
earlier commenthttps://github.com/python/typeshed/issues/12562#issuecomment-2302475367
JelleZijlstrahttps://github.com/JelleZijlstra
pyright playgroundhttps://pyright-play.net/?code=GYJw9gtgBALgngBwJYDsDmUkQWEMoAK4MYAxmADYA0UIArijFgKYD6pAFs6QNYCGAIwrMAUCIAC9Ri3Zdeg4SNIU%2BAZ1VQAynQQ48qgEJhKACiJgS5CgEoAXCKiOoAE2bAorVgOMVPJ1cwUwNZQALQAfFDelLZQAHQJYgAesdq6uDCGPlAAvFAAKvSicKk6eplGlLlQYAIAVtwwJiFQAMRQEIglUIAy5FAIcCBIaBwwsb1iagF4mKqoqjB8KKTMJkk0aeVZlC3tgKDkIlPMMygWs-OLy6twG2UZ2zaO%2ByJAA
object.__bool__https://docs.python.org/3/reference/datamodel.html#object.__bool__
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/randolf-scholz
added SupportsBoolhttps://github.com/python/typeshed/pull/12939/commits/a4059c24d9ce8fe2c3fa60c010d9c932cf6926c1
a4059c2https://github.com/python/typeshed/pull/12939/commits/a4059c24d9ce8fe2c3fa60c010d9c932cf6926c1
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
force-pushedhttps://github.com/python/typeshed/compare/ac2cabd05d008ccc1fa09b9d5fb276a96fc2f5a7..a4059c24d9ce8fe2c3fa60c010d9c932cf6926c1
ac2cabdhttps://github.com/python/typeshed/commit/ac2cabd05d008ccc1fa09b9d5fb276a96fc2f5a7
a4059c2https://github.com/python/typeshed/commit/a4059c24d9ce8fe2c3fa60c010d9c932cf6926c1
Compare https://github.com/python/typeshed/compare/ac2cabd05d008ccc1fa09b9d5fb276a96fc2f5a7..a4059c24d9ce8fe2c3fa60c010d9c932cf6926c1
November 1, 2024 13:49https://github.com/python/typeshed/pull/12939#event-15068393876
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
November 1, 2024 13:57https://github.com/python/typeshed/pull/12939#event-15068624756
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Nov 1, 2024https://github.com/python/typeshed/pull/12939#event-15068648298
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Nov 1, 2024 https://github.com/python/typeshed/pull/12939#ref-pullrequest-2478466067
Experiment: Let SupportsDunderLT return object. #12573 https://github.com/python/typeshed/pull/12573
https://github.com/jorenham
jorenhamhttps://github.com/jorenham
Nov 1, 2024 https://github.com/python/typeshed/pull/12939#pullrequestreview-2410201571
View reviewed changes https://github.com/python/typeshed/pull/12939/files/a4059c24d9ce8fe2c3fa60c010d9c932cf6926c1
stdlib/_typeshed/__init__.pyihttps://github.com/python/typeshed/pull/12939/files/a4059c24d9ce8fe2c3fa60c010d9c932cf6926c1#diff-a3613e85580869c0367d2d8a73f77fa3d00185b5ffee724958f7ddd69d865793
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/jorenham
jorenhamhttps://github.com/jorenham
Nov 1, 2024https://github.com/python/typeshed/pull/12939#issuecomment-2451995485
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Nov 1, 2024https://github.com/python/typeshed/pull/12939#issuecomment-2452069197
python/typing#1355https://github.com/python/typing/issues/1355
…https://github.com/python/typeshed/pull/12939
#12939 (comment)https://github.com/python/typeshed/pull/12939#issuecomment-2451995485
https://github.com/notifications/unsubscribe-auth/AJO3RGFNL23MLRPRRWMDBU3Z6OHY5AVCNFSM6AAAAABRAJIIOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRHE4TKNBYGUhttps://github.com/notifications/unsubscribe-auth/AJO3RGFNL23MLRPRRWMDBU3Z6OHY5AVCNFSM6AAAAABRAJIIOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRHE4TKNBYGU
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/jorenham
jorenhamhttps://github.com/jorenham
Nov 1, 2024https://github.com/python/typeshed/pull/12939#issuecomment-2452077959
@randolf-scholzhttps://github.com/randolf-scholz
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/randolf-scholz
Merge branch 'main' into supports_dunder_lt_supportsboolhttps://github.com/python/typeshed/pull/12939/commits/6f0b9bdc2aabfd8156e34f556035a2394fcb9841
6f0b9bdhttps://github.com/python/typeshed/pull/12939/commits/6f0b9bdc2aabfd8156e34f556035a2394fcb9841
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Nov 5, 2024https://github.com/python/typeshed/pull/12939#issuecomment-2456575201
Please reload this pagehttps://github.com/python/typeshed/pull/12939
BooleanValuehttps://github.com/ibis-project/ibis/blob/00d83f393927b799339cecd6d4272df7feff0651/ibis/expr/types/logical.py#L18
Value.__ge__https://github.com/ibis-project/ibis/blob/00d83f393927b799339cecd6d4272df7feff0651/ibis/expr/types/generic.py#L1182-L1192
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/randolf-scholz
Merge branch 'main' into supports_dunder_lt_supportsboolhttps://github.com/python/typeshed/pull/12939/commits/e2270996bb88a1e9ae9a114857b4fc2f6db5f4d7
e227099https://github.com/python/typeshed/pull/12939/commits/e2270996bb88a1e9ae9a114857b4fc2f6db5f4d7
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
https://github.com/randolf-scholz
Merge branch 'main' into supports_dunder_lt_supportsboolhttps://github.com/python/typeshed/pull/12939/commits/1e6d274db334bd5f8f478700e79f3df3e393418c
1e6d274https://github.com/python/typeshed/pull/12939/commits/1e6d274db334bd5f8f478700e79f3df3e393418c
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
https://github.com/randolf-scholz
Merge branch 'main' into supports_dunder_lt_supportsboolhttps://github.com/python/typeshed/pull/12939/commits/3e689aea143df4135ca08ac467171e53990a6aa1
3e689aehttps://github.com/python/typeshed/pull/12939/commits/3e689aea143df4135ca08ac467171e53990a6aa1
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
https://github.com/randolf-scholz
Merge branch 'main' into supports_dunder_lt_supportsboolhttps://github.com/python/typeshed/pull/12939/commits/c840a321a6aab5c3435b506f5ab2680d5e099918
c840a32https://github.com/python/typeshed/pull/12939/commits/c840a321a6aab5c3435b506f5ab2680d5e099918
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
https://github.com/randolf-scholz
Merge branch 'main' into supports_dunder_lt_supportsboolhttps://github.com/python/typeshed/pull/12939/commits/efdde065c5b0824b78b03a8377e6bb0737323c2d
efdde06https://github.com/python/typeshed/pull/12939/commits/efdde065c5b0824b78b03a8377e6bb0737323c2d
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
https://github.com/srittau
Merge branch 'main' into supports_dunder_lt_supportsboolhttps://github.com/python/typeshed/pull/12939/commits/b5835618b55906e278525ce233b17e913f4da232
b583561https://github.com/python/typeshed/pull/12939/commits/b5835618b55906e278525ce233b17e913f4da232
https://github.com/srittau
srittauhttps://github.com/srittau
Jul 7, 2025 https://github.com/python/typeshed/pull/12939#pullrequestreview-2994044367
View reviewed changes https://github.com/python/typeshed/pull/12939/files/b5835618b55906e278525ce233b17e913f4da232
srittauhttps://github.com/srittau
https://github.com/python/typeshed/pull/12939#pullrequestreview-2994044367
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 7, 2025https://github.com/python/typeshed/pull/12939#issuecomment-3045358094
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/srittau
srittauhttps://github.com/srittau
Jul 7, 2025https://github.com/python/typeshed/pull/12939#issuecomment-3045363821
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/srittau
srittauhttps://github.com/srittau
aed8025https://github.com/python/typeshed/commit/aed8025d62277845e0cb8d8a80ea046325bc9614
Jul 7, 2025https://github.com/python/typeshed/pull/12939#event-18506553669
srittauhttps://github.com/srittau
Jul 7, 2025 https://github.com/python/typeshed/pull/12939#ref-commit-b05c701
https://github.com/srittau
Revert "Let SupportsDunderLT return SupportsBool instead of `bool…https://github.com/srittau/typeshed/commit/b05c701cc5513799ad97dbe6142d5e5db08f8d26
b05c701https://github.com/srittau/typeshed/commit/b05c701cc5513799ad97dbe6142d5e5db08f8d26
python#12939https://github.com/python/typeshed/pull/12939
aed8025https://github.com/srittau/typeshed/commit/aed8025d62277845e0cb8d8a80ea046325bc9614
srittauhttps://github.com/srittau
Jul 7, 2025 https://github.com/python/typeshed/pull/12939#ref-commit-096cf56
https://github.com/srittau
Revert "Let SupportsDunderLT return SupportsBool instead of `bool… (https://github.com/python/typeshed/commit/096cf56da3a42459278ab5c1a4d929a90ba13a65
096cf56https://github.com/python/typeshed/commit/096cf56da3a42459278ab5c1a4d929a90ba13a65
#14373https://github.com/python/typeshed/pull/14373
#12939https://github.com/python/typeshed/pull/12939
aed8025https://github.com/python/typeshed/commit/aed8025d62277845e0cb8d8a80ea046325bc9614
https://github.com/randolf-scholz
randolf-scholzhttps://github.com/randolf-scholz
Jul 7, 2025 https://github.com/python/typeshed/pull/12939#ref-pullrequest-3209689613
Require SupportsBool instead of bool for comparisons. #14375 https://github.com/python/typeshed/pull/14375
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12939
https://github.com/srittau
srittau https://github.com/srittau
https://github.com/python/typeshed/pull/12939/files/b5835618b55906e278525ce233b17e913f4da232
https://github.com/jorenham
jorenham https://github.com/jorenham
https://github.com/python/typeshed/pull/12939/files/a4059c24d9ce8fe2c3fa60c010d9c932cf6926c1
Please reload this pagehttps://github.com/python/typeshed/pull/12939
False positive with builtins.min(T, T) if T.__lt__ doesn't return a builtins.bool https://github.com/python/typeshed/issues/12562
Please reload this pagehttps://github.com/python/typeshed/pull/12939
https://github.com/randolf-scholz
https://github.com/jorenham
https://github.com/srittau
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.