René's URL Explorer Experiment


Title: Make `MemoryView` Generic, make `cast` accurate by max-muoto · Pull Request #12247 · python/typeshed · GitHub

Open Graph Title: Make `MemoryView` Generic, make `cast` accurate by max-muoto · Pull Request #12247 · python/typeshed

X Title: Make `MemoryView` Generic, make `cast` accurate by max-muoto · Pull Request #12247 · python/typeshed

Description: Collection of library stubs for Python, with static types - Make `MemoryView` Generic, make `cast` accurate by max-muoto · Pull Request #12247 · python/typeshed

Open Graph Description: As detailed in #8182, the stubs for memoryview currently represent a sequence of ints, while at runtime this vary across ints, bytes, floats, and booleans at runtime after casting. This PR fixes th...

X Description: As detailed in #8182, the stubs for memoryview currently represent a sequence of ints, while at runtime this vary across ints, bytes, floats, and booleans at runtime after casting. This PR fixes th...

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

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:b580c5ad-2f6d-4602-e608-5ed046b8c67c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCB90:115983:588664:76B121:6B0031FF
html-safe-noncea3ecf5fbcc45dce321da67edae5a91d7fbdd75bad201e88a5b308982fffa3736
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjkwOjExNTk4Mzo1ODg2NjQ6NzZCMTIxOjZCMDAzMUZGIiwidmlzaXRvcl9pZCI6IjIyMDAxMTUzMTcyMDY2OTIzNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0944ed615ff312bd690fe700e3b15b730f309dc704d3de82c83c59d76f903b14
hovercard-subject-tagpull_request:1946285689
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/12247/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/025926c4207fc39ace71bece35699eaa64496018ccf119b2ea38d722580fb6e4/python/typeshed/pull/12247
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/025926c4207fc39ace71bece35699eaa64496018ccf119b2ea38d722580fb6e4/python/typeshed/pull/12247
og:image:altAs detailed in #8182, the stubs for memoryview currently represent a sequence of ints, while at runtime this vary across ints, bytes, floats, and booleans at runtime after casting. This PR fixes th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemax-muoto
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/12247#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12247
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%2F12247
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/12247
Reloadhttps://github.com/python/typeshed/pull/12247
Reloadhttps://github.com/python/typeshed/pull/12247
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
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/typeshed/tree/main
max-muoto:memoryview-as-generichttps://github.com/max-muoto/typeshed/tree/memoryview-as-generic
Conversationhttps://github.com/python/typeshed/pull/12247
Commits12 (12)https://github.com/python/typeshed/pull/12247/commits
Checkshttps://github.com/python/typeshed/pull/12247/checks
Files changedhttps://github.com/python/typeshed/pull/12247/files
Make MemoryView Generic, make cast accuratehttps://github.com/python/typeshed/pull/12247#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/typeshed/tree/main
max-muoto:memoryview-as-generichttps://github.com/max-muoto/typeshed/tree/memoryview-as-generic
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
Jul 1, 2024https://github.com/python/typeshed/pull/12247#issue-2382664875
Please reload this pagehttps://github.com/python/typeshed/pull/12247
#8182https://github.com/python/typeshed/issues/8182
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/max-muoto
Make MemoryView generichttps://github.com/python/typeshed/pull/12247/commits/c1e1fe808fb7d23167081d8515db027b4a19faa4
c1e1fe8https://github.com/python/typeshed/pull/12247/commits/c1e1fe808fb7d23167081d8515db027b4a19faa4
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12247
max-muotohttps://github.com/max-muoto
June 30, 2024 21:49https://github.com/python/typeshed/pull/12247#commits-pushed-2ab244f
https://github.com/max-muoto
Remove fallbackhttps://github.com/python/typeshed/pull/12247/commits/2ab244f312f3f6cb316ebde7601ba30400406eab
2ab244fhttps://github.com/python/typeshed/pull/12247/commits/2ab244f312f3f6cb316ebde7601ba30400406eab
https://github.com/max-muoto
Explicithttps://github.com/python/typeshed/pull/12247/commits/324958d821870493f6ed4421c774d781ce3bbaae
324958dhttps://github.com/python/typeshed/pull/12247/commits/324958d821870493f6ed4421c774d781ce3bbaae
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12247
max-muotohttps://github.com/max-muoto
June 30, 2024 22:01https://github.com/python/typeshed/pull/12247#commits-pushed-0c1a4c3
https://github.com/max-muoto
Fixhttps://github.com/python/typeshed/pull/12247/commits/0c1a4c346ec241dfe75660f30107eec06416e861
0c1a4c3https://github.com/python/typeshed/pull/12247/commits/0c1a4c346ec241dfe75660f30107eec06416e861
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/typeshed/pull/12247/commits/f0f890e020f33aa6bf50e3a29ee1e764c3afa7d2
f0f890ehttps://github.com/python/typeshed/pull/12247/commits/f0f890e020f33aa6bf50e3a29ee1e764c3afa7d2
https://github.com/max-muoto
Tweak?https://github.com/python/typeshed/pull/12247/commits/a12b494acd646a42322c914e9b4107e5a6b0fa3b
a12b494https://github.com/python/typeshed/pull/12247/commits/a12b494acd646a42322c914e9b4107e5a6b0fa3b
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12247
https://github.com/max-muoto
Add testshttps://github.com/python/typeshed/pull/12247/commits/2f53e1af834a4e7b3c7eb20f2451615c5c6addae
2f53e1ahttps://github.com/python/typeshed/pull/12247/commits/2f53e1af834a4e7b3c7eb20f2451615c5c6addae
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
Jul 1, 2024https://github.com/python/typeshed/pull/12247#event-13344433114
max-muotohttps://github.com/max-muoto
June 30, 2024 22:20https://github.com/python/typeshed/pull/12247#commits-pushed-f4cb985
https://github.com/max-muoto
Merge branch 'main' into memoryview-as-generichttps://github.com/python/typeshed/pull/12247/commits/f4cb9856a78a134243595d158ef2a8ec75a3ff8d
f4cb985https://github.com/python/typeshed/pull/12247/commits/f4cb9856a78a134243595d158ef2a8ec75a3ff8d
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/typeshed/pull/12247/commits/4a5d91711039679be0e6d8057e7d80a6e8ce155b
4a5d917https://github.com/python/typeshed/pull/12247/commits/4a5d91711039679be0e6d8057e7d80a6e8ce155b
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Jul 1, 2024https://github.com/python/typeshed/pull/12247#issuecomment-2199156159
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12247
max-muotohttps://github.com/max-muoto
June 30, 2024 22:29https://github.com/python/typeshed/pull/12247#commits-pushed-1960c19
https://github.com/max-muoto
Fix float formatshttps://github.com/python/typeshed/pull/12247/commits/1960c196cd539e965d37fb06d6690de648c8e65b
1960c19https://github.com/python/typeshed/pull/12247/commits/1960c196cd539e965d37fb06d6690de648c8e65b
https://github.com/max-muoto
Add test casehttps://github.com/python/typeshed/pull/12247/commits/f01fc40e23223960bb4d017ff34643c2539f9e4f
f01fc40https://github.com/python/typeshed/pull/12247/commits/f01fc40e23223960bb4d017ff34643c2539f9e4f
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
July 1, 2024 03:30https://github.com/python/typeshed/pull/12247#event-13344494767
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
Jul 1, 2024 https://github.com/python/typeshed/pull/12247#pullrequestreview-2150334866
View reviewed changes https://github.com/python/typeshed/pull/12247/files/f01fc40e23223960bb4d017ff34643c2539f9e4f
stdlib/builtins.pyihttps://github.com/python/typeshed/pull/12247/files/f01fc40e23223960bb4d017ff34643c2539f9e4f#diff-1580ddf7dc331234b0845ffb953b6f7a5f1e9afa15048ebc0762226a08f194b4
max-muotohttps://github.com/max-muoto
Jul 1, 2024https://github.com/python/typeshed/pull/12247#discussion_r1660411372
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
Jul 1, 2024https://github.com/python/typeshed/pull/12247#issuecomment-2199165545
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
Jul 1, 2024https://github.com/python/typeshed/pull/12247#issuecomment-2199166190
Please reload this pagehttps://github.com/python/typeshed/pull/12247
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fpull%2F12247
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
Jul 1, 2024https://github.com/python/typeshed/pull/12247#event-13344540834
https://github.com/max-muoto
Grammarhttps://github.com/python/typeshed/pull/12247/commits/ba70c571cbb4d11a0db94da2a77ac4a8bc6ca887
ba70c57https://github.com/python/typeshed/pull/12247/commits/ba70c571cbb4d11a0db94da2a77ac4a8bc6ca887
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Jul 1, 2024https://github.com/python/typeshed/pull/12247#issuecomment-2199176148
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 1, 2024https://github.com/python/typeshed/pull/12247#issuecomment-2199176724
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
Jul 1, 2024https://github.com/python/typeshed/pull/12247#issuecomment-2199194251
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/max-muoto
max-muotohttps://github.com/max-muoto
Jul 5, 2024https://github.com/python/typeshed/pull/12247#issuecomment-2211199101
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
4316e00https://github.com/python/typeshed/commit/4316e00c9eecc3bf18b7489e66f655779e90f6b5
Jul 12, 2024https://github.com/python/typeshed/pull/12247#event-13479378838
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
Jul 25, 2024 https://github.com/python/typeshed/pull/12247#ref-pullrequest-2430577698
Sync typeshed python/mypy#17586 https://github.com/python/mypy/pull/17586
max-muotohttps://github.com/max-muoto
Sep 8, 2024 https://github.com/python/typeshed/pull/12247#ref-commit-7afd6f7
https://github.com/max-muoto
Makehttps://github.com/max-muoto/typeshed/commit/7afd6f7a21a35e06429d85ae7525f1010994566b
MemoryViewhttps://github.com/max-muoto/typeshed/commit/7afd6f7a21a35e06429d85ae7525f1010994566b
Generic, makehttps://github.com/max-muoto/typeshed/commit/7afd6f7a21a35e06429d85ae7525f1010994566b
casthttps://github.com/max-muoto/typeshed/commit/7afd6f7a21a35e06429d85ae7525f1010994566b
accurate (https://github.com/max-muoto/typeshed/commit/7afd6f7a21a35e06429d85ae7525f1010994566b
python#12247https://github.com/python/typeshed/pull/12247
)https://github.com/max-muoto/typeshed/commit/7afd6f7a21a35e06429d85ae7525f1010994566b
7afd6f7https://github.com/max-muoto/typeshed/commit/7afd6f7a21a35e06429d85ae7525f1010994566b
Subtype for memoryview required to pass mypy checks but triggersTypeError in Python python/mypy#18053 https://github.com/python/mypy/issues/18053
Add __class_getitem__ support to memoryview python/cpython#126012 https://github.com/python/cpython/issues/126012
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%2F12247
Please reload this pagehttps://github.com/python/typeshed/pull/12247
Please reload this pagehttps://github.com/python/typeshed/pull/12247
https://github.com/max-muoto
https://github.com/JelleZijlstra
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.