René's URL Explorer Experiment


Title: Several errors in overloaded functions in the stdlib · Issue #9608 · python/typeshed · GitHub

Open Graph Title: Several errors in overloaded functions in the stdlib · Issue #9608 · python/typeshed

X Title: Several errors in overloaded functions in the stdlib · Issue #9608 · python/typeshed

Description: Attempting to add defaults to overloaded functions in #9606 highlighted many instances where we have incorrect overloads in the stdlib. An example is this overload in _bisect.pyi: typeshed/stdlib/_bisect.pyi Lines 13 to 21 in 808a431 @ov...

Open Graph Description: Attempting to add defaults to overloaded functions in #9606 highlighted many instances where we have incorrect overloads in the stdlib. An example is this overload in _bisect.pyi: typeshed/stdlib/_...

X Description: Attempting to add defaults to overloaded functions in #9606 highlighted many instances where we have incorrect overloads in the stdlib. An example is this overload in _bisect.pyi: typeshed/stdlib/_...

Opengraph URL: https://github.com/python/typeshed/issues/9608

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Several errors in overloaded functions in the stdlib","articleBody":"Attempting to add defaults to overloaded functions in #9606 highlighted many instances where we have incorrect overloads in the stdlib. An example is this overload in `_bisect.pyi`:\r\n\r\nhttps://github.com/python/typeshed/blob/808a431a57e7efb2ec8afa97840c368e760d2e11/stdlib/_bisect.pyi#L13-L21\r\n\r\nThis overload incorrectly marks the `key` parameter as having a default value. But this has several issues:\r\n- If no value is provided for this parameter by the user, we actually want the type checker to pick the _first_ overload (not this overload, which is the second overload). Specifying a default value for this parameter in this overload is confusing.\r\n- If the type checker _did_ select this overload, the `_T` TypeVar would go unsolved if no value was specified for the `key` parameter.\r\n- If we try to add the default value for this parameter (`None`), mypy will (correctly) complain that we're using an implicit optional type for the type annotation.\r\n\r\nThere are several issues like this in our stdlib stubs that should be fixed (see https://github.com/python/typeshed/pull/9606/commits/b39305ee691e2789e5e6ba4e525b2e619f0d33b4 for a summary of the problematic functions — this is the commit in #9606 in which I reverted all the defaults `stubdefaulter` had added that caused mypy to emit errors).","author":{"url":"https://github.com/AlexWaygood","@type":"Person","name":"AlexWaygood"},"datePublished":"2023-01-29T11:59:56Z","url":"https://github.com/python/typeshed/issues/9608"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:90856181-054e-32ff-4eb6-c498fcfecba0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDBD8:1AF0B6:4C0590:62541D:6AFFC01A
html-safe-nonce155f2b9be1431fb057b6f227aa02f14803332972b55945e3c6279d1224230c83
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkQ4OjFBRjBCNjo0QzA1OTA6NjI1NDFEOjZBRkZDMDFBIiwidmlzaXRvcl9pZCI6IjYyOTcxNzkyMjYxMDU2OTIxODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac84f7b82d92faf4c9ccb31ce848ac42c18509bdb6676bd80c7e9df749afb071b2
hovercard-subject-tagissue:1561255106
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/9608/issue_layout
twitter:imagehttps://opengraph.githubassets.com/884b823c9ece2cbe21eb2b11c980a49c07570ad926a3ee1f7b94cc323a62f192/python/typeshed/issues/9608
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/884b823c9ece2cbe21eb2b11c980a49c07570ad926a3ee1f7b94cc323a62f192/python/typeshed/issues/9608
og:image:altAttempting to add defaults to overloaded functions in #9606 highlighted many instances where we have incorrect overloads in the stdlib. An example is this overload in _bisect.pyi: typeshed/stdlib/_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexWaygood
hostnamegithub.com
expected-hostnamegithub.com
None1e805b832df235bb21305db712c3b6432920019dfc12cb25b9cb8d3b0c9403cf
turbo-cache-controlno-preview
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
release8fa4a54e6871c7908eda1c246ad5972982c0b59d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/9608#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F9608
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%2Fissues%2F9608
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/9608
Reloadhttps://github.com/python/typeshed/issues/9608
Reloadhttps://github.com/python/typeshed/issues/9608
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests249 (249)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
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/9608
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/9608
Several errors in overloaded functions in the stdlibhttps://github.com/python/typeshed/issues/9608#top
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Jan 29, 2023https://github.com/python/typeshed/issues/9608#issue-1561255106
#9606https://github.com/python/typeshed/pull/9606
typeshed/stdlib/_bisect.pyihttps://github.com/python/typeshed/blob/808a431a57e7efb2ec8afa97840c368e760d2e11/stdlib/_bisect.pyi#L13-L21
808a431https://github.com/python/typeshed/commit/808a431a57e7efb2ec8afa97840c368e760d2e11
b39305ehttps://github.com/python/typeshed/commit/b39305ee691e2789e5e6ba4e525b2e619f0d33b4
#9606https://github.com/python/typeshed/pull/9606
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Jan 30, 2023https://github.com/python/typeshed/issues/9608#issuecomment-1408466182
b39305ehttps://github.com/python/typeshed/commit/b39305ee691e2789e5e6ba4e525b2e619f0d33b4
https://github.com/srittau
srittauhttps://github.com/srittau
on Jan 30, 2023https://github.com/python/typeshed/issues/9608#issuecomment-1408993450
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Feb 1, 2023https://github.com/python/typeshed/issues/9608#issuecomment-1411752809
JelleZijlstra/stubdefaulter#35https://github.com/JelleZijlstra/stubdefaulter/issues/35
AlexWaygoodhttps://github.com/AlexWaygood
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 1, 2023https://github.com/python/typeshed/issues/9608#event-8408358133
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/9608
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/9608
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.