René's URL Explorer Experiment


Title: [mypyc] Allow native classes to support weak refs by JukkaL · Pull Request #22387 · python/mypy · GitHub

Open Graph Title: [mypyc] Allow native classes to support weak refs by JukkaL · Pull Request #22387 · python/mypy

X Title: [mypyc] Allow native classes to support weak refs by JukkaL · Pull Request #22387 · python/mypy

Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Open Graph Description: Fixes mypyc/mypyc#1102. Native classes support weak references if they opt in using @mypyc_attr(weakrefs=True), which adds a weak reference list field to the object struct. The base class of a hier...

X Description: Fixes mypyc/mypyc#1102. Native classes support weak references if they opt in using @mypyc_attr(weakrefs=True), which adds a weak reference list field to the object struct. The base class of a hier...

Opengraph URL: https://github.com/python/mypy/pull/22387

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:2bd61fee-9b7e-5df5-d074-e5a139a9e17e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD3DE:184B81:2FBDCF3:3F35FA9:6B002DAC
html-safe-nonceb58fc14ff460a2bd8911819383cd968be593a0550ceac5e8c137cbc164737d3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0RFOjE4NEI4MToyRkJEQ0YzOjNGMzVGQTk6NkIwMDJEQUMiLCJ2aXNpdG9yX2lkIjoiOTI4NjAzMTEyNjUyOTQyNzY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacce2089b33731c7bc3a399359a905cb39205a22ae91c0957532c18b8d2889cacf
hovercard-subject-tagpull_request:5191327232
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/mypy/22387/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/31523b7bc79d59b3d6c6437a2cfca0e6d60dcf90f035691cd2c2a83e8eb38fce/python/mypy/pull/22387
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/31523b7bc79d59b3d6c6437a2cfca0e6d60dcf90f035691cd2c2a83e8eb38fce/python/mypy/pull/22387
og:image:altFixes mypyc/mypyc#1102. Native classes support weak references if they opt in using @mypyc_attr(weakrefs=True), which adds a weak reference list field to the object struct. The base class of a hier...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJukkaL
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-cache
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
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/mypy/pull/22387#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F22387
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%2Fmypy%2Fpull%2F22387
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%2Fmypy
Reloadhttps://github.com/python/mypy/pull/22387
Reloadhttps://github.com/python/mypy/pull/22387
Reloadhttps://github.com/python/mypy/pull/22387
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests547 (547)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
JukkaLhttps://github.com/JukkaL
masterhttps://github.com/python/mypy/tree/master
mypyc-weakrefhttps://github.com/python/mypy/tree/mypyc-weakref
Conversationhttps://github.com/python/mypy/pull/22387
Commits2 (2)https://github.com/python/mypy/pull/22387/commits
Checkshttps://github.com/python/mypy/pull/22387/checks
Files changedhttps://github.com/python/mypy/pull/22387/files
[mypyc] Allow native classes to support weak refshttps://github.com/python/mypy/pull/22387#top
JukkaLhttps://github.com/JukkaL
masterhttps://github.com/python/mypy/tree/master
mypyc-weakrefhttps://github.com/python/mypy/tree/mypyc-weakref
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Nov 6, 2026https://github.com/python/mypy/pull/22387#issue-6246773840
mypyc/mypyc#1102https://github.com/mypyc/mypyc/issues/1102
Please reload this pagehttps://github.com/python/mypy/pull/22387
https://github.com/p-sawicki
p-sawickihttps://github.com/p-sawicki
Nov 6, 2026 https://github.com/python/mypy/pull/22387#pullrequestreview-5803815093
View reviewed changes https://github.com/python/mypy/pull/22387/files
mypyc/ir/class_ir.pyhttps://github.com/python/mypy/pull/22387/files#diff-153a18883446e6d112632123dc59e64b60c6182888709afa780b3f4445295d63
p-sawickihttps://github.com/p-sawicki
Nov 6, 2026https://github.com/python/mypy/pull/22387#discussion_r4495192369
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/22387
JukkaLhttps://github.com/JukkaL
November 9, 2026 11:16https://github.com/python/mypy/pull/22387#commits-pushed-ccab776
https://github.com/JukkaL
[mypyc] Allow native classes to support weak refshttps://github.com/python/mypy/pull/22387/commits/ccab776cbd632ed47ff92cc2f418f1e42cf3a7db
ccab776https://github.com/python/mypy/pull/22387/commits/ccab776cbd632ed47ff92cc2f418f1e42cf3a7db
mypyc/mypyc#1102https://github.com/mypyc/mypyc/issues/1102
https://github.com/JukkaL
Address feedbackhttps://github.com/python/mypy/pull/22387/commits/44d2aaa4d77f0c6746e9ed048ca34c15315e4a3c
44d2aaahttps://github.com/python/mypy/pull/22387/commits/44d2aaa4d77f0c6746e9ed048ca34c15315e4a3c
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
force-pushedhttps://github.com/python/mypy/compare/b82de9a23304f18332cc5757ddeaa06b6aa6f9d4..44d2aaa4d77f0c6746e9ed048ca34c15315e4a3c
b82de9ahttps://github.com/python/mypy/commit/b82de9a23304f18332cc5757ddeaa06b6aa6f9d4
44d2aaahttps://github.com/python/mypy/commit/44d2aaa4d77f0c6746e9ed048ca34c15315e4a3c
Compare https://github.com/python/mypy/compare/b82de9a23304f18332cc5757ddeaa06b6aa6f9d4..44d2aaa4d77f0c6746e9ed048ca34c15315e4a3c
November 9, 2026 11:33https://github.com/python/mypy/pull/22387#event-35563018361
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
55c99b7https://github.com/python/mypy/commit/55c99b7c19303b427b73a032b7ace17c8aa15065
Nov 9, 2026https://github.com/python/mypy/pull/22387#event-35568501844
Please reload this pagehttps://github.com/python/mypy/pull/22387
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
November 9, 2026 12:43https://github.com/python/mypy/pull/22387#event-35568505913
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Nov 10, 2026 https://github.com/python/mypy/pull/22387#ref-pullrequest-3050057127
feat(mypyc): proper weakref support #19056 https://github.com/python/mypy/pull/19056
[mypyc] Regenerate dependent modules when weakrefs, serializable or acyclic is toggled on a base class #22467 https://github.com/python/mypy/pull/22467
[mypyc] Allow weak references to classes that allow interpreted subclasses #22468 https://github.com/python/mypy/pull/22468
[mypyc] Fix race in the __weakref__ getter on free-threaded builds #22486 https://github.com/python/mypy/pull/22486
JukkaLhttps://github.com/JukkaL
Nov 17, 2026 https://github.com/python/mypy/pull/22387#ref-commit-7ba6819
https://github.com/Jahongir-Qurbonov
[mypyc] Allow weak references to classes that allow interpreted subcl…https://github.com/python/mypy/commit/7ba681974e1eae6350c0bc0842a0de832a4e5ec5
7ba6819https://github.com/python/mypy/commit/7ba681974e1eae6350c0bc0842a0de832a4e5ec5
#22468https://github.com/python/mypy/pull/22468
#22387https://github.com/python/mypy/pull/22387
p-sawickihttps://github.com/p-sawicki
Nov 19, 2026 https://github.com/python/mypy/pull/22387#ref-commit-c71c85b
https://github.com/Jahongir-Qurbonov
[mypyc] Fix race in the __weakref__ getter on free-threaded builds (https://github.com/python/mypy/commit/c71c85bcc8084d1fcc526aad2019c2597f31cab1
#…https://github.com/python/mypy/pull/22486
c71c85bhttps://github.com/python/mypy/commit/c71c85bcc8084d1fcc526aad2019c2597f31cab1
…22486https://github.com/python/mypy/pull/22486
#22387https://github.com/python/mypy/pull/22387
python/cpython#150247https://github.com/python/cpython/pull/150247
python/cpython#149816https://github.com/python/cpython/issues/149816
https://github.co/hiddenchars
https://github.com/python/mypy/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%2Fmypy%2Fpull%2F22387
https://github.com/p-sawicki
p-sawicki https://github.com/p-sawicki
https://github.com/python/mypy/pull/22387/files/b82de9a23304f18332cc5757ddeaa06b6aa6f9d4
Please reload this pagehttps://github.com/python/mypy/pull/22387
Compatibility issues with weakrefs https://github.com/mypyc/mypyc/issues/1102
Please reload this pagehttps://github.com/python/mypy/pull/22387
https://github.com/JukkaL
https://github.com/p-sawicki
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.