René's URL Explorer Experiment


Title: Several type annotations in `_interpreters` and `_interpqueues` are wrong · Issue #13351 · python/typeshed · GitHub

Open Graph Title: Several type annotations in `_interpreters` and `_interpqueues` are wrong · Issue #13351 · python/typeshed

X Title: Several type annotations in `_interpreters` and `_interpqueues` are wrong · Issue #13351 · python/typeshed

Description: _interpreters.exec() is annotated as returning None, while on error it actually returns a namespace (though this fact is largely undocumented) _interpreters.exec() is annotated as only taking str as the code argument, though it's documen...

Open Graph Description: _interpreters.exec() is annotated as returning None, while on error it actually returns a namespace (though this fact is largely undocumented) _interpreters.exec() is annotated as only taking str a...

X Description: _interpreters.exec() is annotated as returning None, while on error it actually returns a namespace (though this fact is largely undocumented) _interpreters.exec() is annotated as only taking str a...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Several type annotations in `_interpreters` and `_interpqueues` are wrong","articleBody":"1. `_interpreters.exec()` is annotated as returning `None`, while on error it actually returns a `namespace` (though this fact is largely undocumented)\r\n2. `_interpreters.exec()` is annotated as only taking `str` as the `code` argument, though it's documented to also accept code objects:\r\n> Functions (and code objects) are also supported, with some restrictions.\r\n    The code/function must not take any arguments or be a closure\r\n    (i.e. have cell vars).  Methods and other callables are not supported.\r\n3. `_interpqueues.create()` takes 3 mandatory arguments (`create(maxsize, fmt, unboundop) -> qid`), but the type stub says it takes 2\r\n4. `_interpqueues.get()` returns a 3-tuple (item, fmt, unboundop), not 2-tuple as annotated in typeshed\r\n5. `_interpqueues.put` takes 4 arguments (qid, item, fmt, unboundop), not 3 as annotated in typeshed (admittedly its own docstring is **also** wrong!)\r\n\r\nI believe the annotations may have been correct at the time they were added, but changes have been made to them in the CPython repository since then.","author":{"url":"https://github.com/agronholm","@type":"Person","name":"agronholm"},"datePublished":"2024-12-31T21:12:13Z","url":"https://github.com/python/typeshed/issues/13351"}

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:41137005-f2b1-b193-19f8-e22ac25482a8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDA48:2AD163:2B575F3:3B27DDB:6B0055B3
html-safe-noncec14011a60d9222815e2cebce062e4bf0ba4769542eebf38a27407e3121f8741c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTQ4OjJBRDE2MzoyQjU3NUYzOjNCMjdEREI6NkIwMDU1QjMiLCJ2aXNpdG9yX2lkIjoiNjYyOTc3MDMxMzcwODA5ODk5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca26a8e469be5b2866f7631a3be226fe9daac8c26c38b51233cb0934d7b7aa265
hovercard-subject-tagissue:2764677215
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/13351/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ae013f5b76badcf52166303b527e90005c461997ded7f815157fe4db0f801e76/python/typeshed/issues/13351
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ae013f5b76badcf52166303b527e90005c461997ded7f815157fe4db0f801e76/python/typeshed/issues/13351
og:image:alt_interpreters.exec() is annotated as returning None, while on error it actually returns a namespace (though this fact is largely undocumented) _interpreters.exec() is annotated as only taking str a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameagronholm
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
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
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/13351#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F13351
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%2F13351
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/13351
Reloadhttps://github.com/python/typeshed/issues/13351
Reloadhttps://github.com/python/typeshed/issues/13351
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests252 (252)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/13351
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/13351
Several type annotations in _interpreters and _interpqueues are wronghttps://github.com/python/typeshed/issues/13351#top
stubs: false positiveType checkers report false errorshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22stubs%3A%20false%20positive%22
https://github.com/agronholm
agronholmhttps://github.com/agronholm
on Dec 31, 2024https://github.com/python/typeshed/issues/13351#issue-2764677215
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Dec 31, 2024https://github.com/python/typeshed/issues/13351#issuecomment-2566714239
AlexWaygoodhttps://github.com/AlexWaygood
stubs: false positiveType checkers report false errorshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22stubs%3A%20false%20positive%22
on Dec 31, 2024https://github.com/python/typeshed/issues/13351#event-15791980483
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
on Jan 2, 2025https://github.com/python/typeshed/issues/13351#issuecomment-2567227145
@agronholmhttps://github.com/agronholm
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
on Jan 2, 2025https://github.com/python/typeshed/issues/13351#issuecomment-2567237381
#13355https://github.com/python/typeshed/pull/13355
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Jan 2, 2025https://github.com/python/typeshed/issues/13351#issuecomment-2568402566
https://github.com/agronholm
agronholmhttps://github.com/agronholm
on Jan 2, 2025https://github.com/python/typeshed/issues/13351#issuecomment-2568403669
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Jan 2, 2025https://github.com/python/typeshed/issues/13351#issuecomment-2568406768
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
on Jan 29, 2025https://github.com/python/typeshed/issues/13351#issuecomment-2620512533
@AlexWaygoodhttps://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 29, 2025https://github.com/python/typeshed/issues/13351#event-16104348325
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/13351
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/13351
stubs: false positiveType checkers report false errorshttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22stubs%3A%20false%20positive%22
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.