René's URL Explorer Experiment


Title: Assume there is no bytes/bytearray/memoryview implicit promotion · Issue #9001 · python/typeshed · GitHub

Open Graph Title: Assume there is no bytes/bytearray/memoryview implicit promotion · Issue #9001 · python/typeshed

X Title: Assume there is no bytes/bytearray/memoryview implicit promotion · Issue #9001 · python/typeshed

Description: Currently, we treat bytearray and memoryview as implicit subclasses of bytes, following the CPython documentation. In PEP 688, I propose to remove this implicit promotion. Discussion is still ongoing, but I'd like to make sure typeshed i...

Open Graph Description: Currently, we treat bytearray and memoryview as implicit subclasses of bytes, following the CPython documentation. In PEP 688, I propose to remove this implicit promotion. Discussion is still ongoi...

X Description: Currently, we treat bytearray and memoryview as implicit subclasses of bytes, following the CPython documentation. In PEP 688, I propose to remove this implicit promotion. Discussion is still ongoi...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assume there is no bytes/bytearray/memoryview implicit promotion","articleBody":"Currently, we treat `bytearray` and `memoryview` as implicit subclasses of `bytes`, following the CPython documentation. In PEP 688, I propose to remove this implicit promotion. Discussion is still ongoing, but I'd like to make sure typeshed is ready for this change by reviewing existing usage of `bytes`.\r\n\r\nTo make that easier, I propose that we *write stubs as if there is no implicit promotion between `bytes`, `bytearray`, and `memoryview`*. Thus, if a function accepts either `bytes` or `bytearray`, we should write `bytes | bytearray`, not just `bytes`.\r\n\r\nThe only cost here should be that certain argument annotations become longer; everything should still work fine for type checkers that assume the implicit promotion.\r\n\r\nIf we agree on this rule, I can review existing `bytes` annotations for correctness. In my experience, most usages of `bytes` in argument positions should be `ReadableBuffer`.","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2022-10-27T15:32:46Z","url":"https://github.com/python/typeshed/issues/9001"}

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:097d9ab4-a1e0-11cf-90ff-fb2ecc0dfc18
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC0FE:43251:1603ED9:1D41CA7:6B0024D1
html-safe-nonce89cd47b16d20f9b3258193f4a1868241b903150e37ba3e537fa91dc3c437938a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEZFOjQzMjUxOjE2MDNFRDk6MUQ0MUNBNzo2QjAwMjREMSIsInZpc2l0b3JfaWQiOiI0MTI0MTk5MjA5MTI3NjUwNTE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac27fd01ee818300c86fc8f03719be1eecebdef7bd1a828d7ab08e7e2557e1aeec
hovercard-subject-tagissue:1425841510
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/9001/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c64b94dc4f1114e733df28f15de58fdcc353c7e5e995c3c0e2c95bba6b53e046/python/typeshed/issues/9001
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c64b94dc4f1114e733df28f15de58fdcc353c7e5e995c3c0e2c95bba6b53e046/python/typeshed/issues/9001
og:image:altCurrently, we treat bytearray and memoryview as implicit subclasses of bytes, following the CPython documentation. In PEP 688, I propose to remove this implicit promotion. Discussion is still ongoi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJelleZijlstra
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/9001#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F9001
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%2F9001
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/9001
Reloadhttps://github.com/python/typeshed/issues/9001
Reloadhttps://github.com/python/typeshed/issues/9001
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
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/9001
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/9001
#9005https://github.com/python/typeshed/pull/9005
Assume there is no bytes/bytearray/memoryview implicit promotionhttps://github.com/python/typeshed/issues/9001#top
#9005https://github.com/python/typeshed/pull/9005
project: policyOrganization of the typeshed projecthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20policy%22
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Oct 27, 2022https://github.com/python/typeshed/issues/9001#issue-1425841510
JelleZijlstrahttps://github.com/JelleZijlstra
project: policyOrganization of the typeshed projecthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20policy%22
on Oct 27, 2022https://github.com/python/typeshed/issues/9001#event-7683549227
https://github.com/srittau
srittauhttps://github.com/srittau
on Oct 27, 2022https://github.com/python/typeshed/issues/9001#issuecomment-1293753714
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Oct 27, 2022https://github.com/python/typeshed/issues/9001#issuecomment-1293778868
hauntsaninjahttps://github.com/hauntsaninja
on Oct 27, 2022https://github.com/python/typeshed/issues/9001#event-7685754780
Add options to disable bytes promotionhttps://github.com/hauntsaninja/mypy/commit/2ff812f5a72c475ce3d25a78a7e053b9b3cd730b
2ff812fhttps://github.com/hauntsaninja/mypy/commit/2ff812f5a72c475ce3d25a78a7e053b9b3cd730b
Add hidden options to disable bytes promotion (#13952)https://github.com/python/mypy/commit/2d70ac0b33b448d5ef51c0856571068dd0754af6
#13952https://github.com/python/mypy/pull/13952
2d70ac0https://github.com/python/mypy/commit/2d70ac0b33b448d5ef51c0856571068dd0754af6
Add hidden options to disable bytes promotion (#13952)https://github.com/python/mypy/commit/74e0dff0b0ee3636ad43000f1ee785eaef6d2d8f
#13952https://github.com/python/mypy/pull/13952
74e0dffhttps://github.com/python/mypy/commit/74e0dff0b0ee3636ad43000f1ee785eaef6d2d8f
JelleZijlstrahttps://github.com/JelleZijlstra
on Oct 28, 2022https://github.com/python/typeshed/issues/9001#event-7687400797
CONTRIBUTING: Note no bytearray promotionhttps://github.com/python/typeshed/commit/09ae69c0272f0caa2c841c91799a4c118f82836d
https://docs.github.com/articles/closing-issues-via-commit-messages
09ae69chttps://github.com/python/typeshed/commit/09ae69c0272f0caa2c841c91799a4c118f82836d
hauntsaninjahttps://github.com/hauntsaninja
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#9005https://github.com/python/typeshed/pull/9005
on Oct 28, 2022https://github.com/python/typeshed/issues/9001#event-7694761179
hauntsaninjahttps://github.com/hauntsaninja
on Oct 28, 2022https://github.com/python/typeshed/issues/9001#event-7694761236
CONTRIBUTING: Note no bytearray promotion (#9005)https://github.com/python/typeshed/commit/b5c4580d529c03efe7b4546ed9d3632befd5fb49
#9005https://github.com/python/typeshed/pull/9005
https://docs.github.com/articles/closing-issues-via-commit-messages
b5c4580https://github.com/python/typeshed/commit/b5c4580d529c03efe7b4546ed9d3632befd5fb49
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/9001
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/9001
project: policyOrganization of the typeshed projecthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20policy%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.