René's URL Explorer Experiment


Title: new protocol, overloads to list.sort, sorted; prep. to fix #4051, by ramalho · Pull Request #4155 · python/typeshed · GitHub

Open Graph Title: new protocol, overloads to list.sort, sorted; prep. to fix #4051, by ramalho · Pull Request #4155 · python/typeshed

X Title: new protocol, overloads to list.sort, sorted; prep. to fix #4051, by ramalho · Pull Request #4155 · python/typeshed

Description: As agreed with @JelleZijlstra, this PR introduces the _SupportsLessThan protocol and a type variable bounded to it to check arguments to list.sort and sorted on Python 3 (on Python 2, these checks do not reflect reality: everything supports __lt__, even None and object). When this PR is merged, I will send another one using _SupportsLessThan to check arguments to min and max, fixing #4051 with lots of overloads.

Open Graph Description: As agreed with @JelleZijlstra, this PR introduces the _SupportsLessThan protocol and a type variable bounded to it to check arguments to list.sort and sorted on Python 3 (on Python 2, these checks ...

X Description: As agreed with @JelleZijlstra, this PR introduces the _SupportsLessThan protocol and a type variable bounded to it to check arguments to list.sort and sorted on Python 3 (on Python 2, these checks ...

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:04b229b5-b4d3-c15f-821b-5e7c1ff817ed
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB53A:2AD163:23F8449:30E9818:6B002FFA
html-safe-nonce8717a58e9b60dded4b7527d6edfb824afecf43ab43097e9ddebfeaa650d2b4e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTNBOjJBRDE2MzoyM0Y4NDQ5OjMwRTk4MTg6NkIwMDJGRkEiLCJ2aXNpdG9yX2lkIjoiMTAwMjU0NDk0MzIwMzM2NDg1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac10871c37c4164a2f217223f084618b7fcb833c98e72b12350ca62d3506c271c4
hovercard-subject-tagpull_request:426355893
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/python/typeshed/pull/4155/files
twitter:imagehttps://avatars.githubusercontent.com/u/29944?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/29944?s=400&v=4
og:image:altAs agreed with @JelleZijlstra, this PR introduces the _SupportsLessThan protocol and a type variable bounded to it to check arguments to list.sort and sorted on Python 3 (on Python 2, these checks ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/python/typeshed/pull/4155/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F4155%2Ffiles
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%2F4155%2Ffiles
Sign uphttps://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=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/pull/4155/files
Reloadhttps://github.com/python/typeshed/pull/4155/files
Reloadhttps://github.com/python/typeshed/pull/4155/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftypeshed%2Fissues%2Fnew%2Fchoose
ramalhohttps://github.com/ramalho
python:masterhttps://github.com/python/typeshed/tree/master
Conversation 13 https://github.com/python/typeshed/pull/4155
Commits 9 https://github.com/python/typeshed/pull/4155/commits
Checks 0 https://github.com/python/typeshed/pull/4155/checks
Files changed https://github.com/python/typeshed/pull/4155/files
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
new protocol, overloads to list.sort, sorted; prep. to fix #4051, https://github.com/python/typeshed/pull/4155/files#top
Show all changes 9 commits https://github.com/python/typeshed/pull/4155/files
356c64d new protocol, overloads to list.sort, sorted; prep. to fix #4051 ramalho Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/356c64d963f7154fc8a001eb6c75dc7ef83eead1
c02b783 syncing builtins.py with __builtin__.pyi ramalho Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/c02b78374ce035ccd9d8933d062c44c6579ae6ff
7f5601a syncing builtins.py with __builtin__.pyi ramalho Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/7f5601ac019713617936abc13d0c14d528f34ae5
3542d39 removing extra ... from sort/sorted overloads ramalho Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/3542d3937520766e3b04a9b4d15f8bc58a2fe598
a5a0289 Merge branch 'master' of github.com:ramalho/typeshed ramalho Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/a5a028934d5966a9c6b923c995b154bcdb65d234
76e0907 syncing builtins.py with __builtin__.pyi ramalho Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/76e0907bc59b093086427c70b702a3557bbfe716
e46d4c1 Merge remote-tracking branch 'upstream/master' Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/e46d4c1b03185e40124c11cbd9227d32e910f5d4
6ddefc0 Remove redundant _LT typevar in list.sort overloads ramalho Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/6ddefc0f6d7e819f90461c79223c40668ef95a14
eb0297b Syncing 2/__builtin__.pyi with 2and3/builtins.pyi ramalho Jun 2, 2020 https://github.com/python/typeshed/pull/4155/commits/eb0297b1e30d50a9f2c6d3c8f114043dfac4eb1a
Clear filters https://github.com/python/typeshed/pull/4155/files
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
__builtin__.pyi https://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
builtins.pyi https://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
stdlib/2/__builtin__.pyihttps://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
View file https://github.com/python/typeshed/blob/eb0297b1e30d50a9f2c6d3c8f114043dfac4eb1a/stdlib/2/__builtin__.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/4155/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
https://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
https://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
https://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
JelleZijlstrahttps://github.com/JelleZijlstra
Jun 6, 2020https://github.com/python/typeshed/pull/4155/files#r436276693
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
https://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
https://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
srittauhttps://github.com/srittau
Jun 2, 2020https://github.com/python/typeshed/pull/4155/files#r433864506
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
ramalhohttps://github.com/ramalho
Jun 2, 2020https://github.com/python/typeshed/pull/4155/files#r434087513
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@srittauhttps://github.com/srittau
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
JelleZijlstrahttps://github.com/JelleZijlstra
Jun 2, 2020https://github.com/python/typeshed/pull/4155/files#r434094280
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@srittauhttps://github.com/srittau
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
JelleZijlstrahttps://github.com/JelleZijlstra
Jun 6, 2020https://github.com/python/typeshed/pull/4155/files#r436276722
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/4155/files
https://github.com/python/typeshed/pull/4155/files#diff-1d779f57c4a031bf6683d708babcda1f1e1bc38fc30e63e87c3451827a870a30
stdlib/2and3/builtins.pyihttps://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
View file https://github.com/python/typeshed/blob/eb0297b1e30d50a9f2c6d3c8f114043dfac4eb1a/stdlib/2and3/builtins.pyi
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typeshed/pull/4155/{{ revealButtonHref }}
https://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
https://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
https://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
https://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
https://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
https://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
https://github.com/python/typeshed/pull/4155/files#diff-c430302cd57835815fa7401cd1322c5d1ad57c29ac2850903dff4a1380f202f8
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.