René's URL Explorer Experiment


Title: [mypyc] Fix incremental compilation with `separate` flag (1/3) by VaggelisD · Pull Request #21299 · python/mypy · GitHub

Open Graph Title: [mypyc] Fix incremental compilation with `separate` flag (1/3) by VaggelisD · Pull Request #21299 · python/mypy

X Title: [mypyc] Fix incremental compilation with `separate` flag (1/3) by VaggelisD · Pull Request #21299 · python/mypy

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

Open Graph Description: This PR contains the minimum changes required to unblock incremental compilation in SQLGlot; I've verified it runs cleanly and builds much faster (benched on macOS arm64, Python 3.14, MYPYC_OPT...

X Description: This PR contains the minimum changes required to unblock incremental compilation in SQLGlot; I've verified it runs cleanly and builds much faster (benched on macOS arm64, Python 3.14, MYPYC...

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

X: @github

direct link

Domain: github.com

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:b83c70bc-323c-0f67-08fe-0783bf9f34e6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8858:374E1E:731602:9FDE9F:6A4C912C
html-safe-nonce9449039534b8463f8be4825c7aa9041a09b298402196ab7b292b1c130cbab26a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODU4OjM3NEUxRTo3MzE2MDI6OUZERTlGOjZBNEM5MTJDIiwidmlzaXRvcl9pZCI6IjEyNDMxNDUyOTU5NjY4MDIyMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb43d2e7b3820ccf6cba34beaa6e1e84514af0c4397eb216e0529c97637112806
hovercard-subject-tagpull_request:3573013036
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/21299/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7ae0e09e83b82cd97acf066301c646113729a91025848437673acef4c8244524/python/mypy/pull/21299
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7ae0e09e83b82cd97acf066301c646113729a91025848437673acef4c8244524/python/mypy/pull/21299
og:image:altThis PR contains the minimum changes required to unblock incremental compilation in SQLGlot; I've verified it runs cleanly and builds much faster (benched on macOS arm64, Python 3.14, MYPYC_OPT...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameVaggelisD
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
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
release7a2dede45637df6b92ddcfe2a557e67d4b5854ae
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/mypy/pull/21299#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21299
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21299
Sign up https://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/21299
Reloadhttps://github.com/python/mypy/pull/21299
Reloadhttps://github.com/python/mypy/pull/21299
Please reload this pagehttps://github.com/python/mypy/pull/21299
python https://github.com/python
mypyhttps://github.com/python/mypy
Please reload this pagehttps://github.com/python/mypy/pull/21299
Notifications https://github.com/login?return_to=%2Fpython%2Fmypy
Fork 3.2k https://github.com/login?return_to=%2Fpython%2Fmypy
Star 20.5k https://github.com/login?return_to=%2Fpython%2Fmypy
Code https://github.com/python/mypy
Issues 2.7k https://github.com/python/mypy/issues
Pull requests 460 https://github.com/python/mypy/pulls
Actions https://github.com/python/mypy/actions
Projects https://github.com/python/mypy/projects
Wiki https://github.com/python/mypy/wiki
Security and quality 0 https://github.com/python/mypy/security
Insights https://github.com/python/mypy/pulse
Code https://github.com/python/mypy
Issues https://github.com/python/mypy/issues
Pull requests https://github.com/python/mypy/pulls
Actions https://github.com/python/mypy/actions
Projects https://github.com/python/mypy/projects
Wiki https://github.com/python/mypy/wiki
Security and quality https://github.com/python/mypy/security
Insights https://github.com/python/mypy/pulse
p-sawickihttps://github.com/p-sawicki
python:masterhttps://github.com/python/mypy/tree/master
VaggelisD:sqlglot-separate-fixeshttps://github.com/VaggelisD/sqlglot-mypy/tree/sqlglot-separate-fixes
Conversationhttps://github.com/python/mypy/pull/21299
Commits6 (6)https://github.com/python/mypy/pull/21299/commits
Checkshttps://github.com/python/mypy/pull/21299/checks
Files changedhttps://github.com/python/mypy/pull/21299/files
[mypyc] Fix incremental compilation with separate flag (1/3)https://github.com/python/mypy/pull/21299#top
p-sawickihttps://github.com/p-sawicki
python:masterhttps://github.com/python/mypy/tree/master
VaggelisD:sqlglot-separate-fixeshttps://github.com/VaggelisD/sqlglot-mypy/tree/sqlglot-separate-fixes
https://github.com/VaggelisD
VaggelisDhttps://github.com/VaggelisD
Apr 23, 2026https://github.com/python/mypy/pull/21299#issue-4315827948
Please reload this pagehttps://github.com/python/mypy/pull/21299
mypyc issuehttps://github.com/mypyc/mypyc/issues/1068
Please reload this pagehttps://github.com/python/mypy/pull/21299
VaggelisDhttps://github.com/VaggelisD
April 23, 2026 15:00https://github.com/python/mypy/pull/21299#commits-pushed-76078c0
https://github.com/VaggelisD
[mypyc] Make separate=True compilation work for real-world projects (…https://github.com/python/mypy/pull/21299/commits/76078c003672707afc98233e7e4674ff37794082
76078c0https://github.com/python/mypy/pull/21299/commits/76078c003672707afc98233e7e4674ff37794082
#1https://github.com/VaggelisD/sqlglot-mypy/pull/1
#2https://github.com/VaggelisD/sqlglot-mypy/pull/2
#3https://github.com/VaggelisD/sqlglot-mypy/pull/3
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/21299/commits/7ab4c16d4eebf12999e713f411c484a74e4ab029
7ab4c16https://github.com/python/mypy/pull/21299/commits/7ab4c16d4eebf12999e713f411c484a74e4ab029
https://pre-commit.cihttps://pre-commit.ci
https://github.com/VaggelisD
[mypyc] Fix separate=True under free-threading (Py_GIL_DISABLED)https://github.com/python/mypy/pull/21299/commits/0269b7a46afecc9cffdcf4661b45e065356de631
0269b7ahttps://github.com/python/mypy/pull/21299/commits/0269b7a46afecc9cffdcf4661b45e065356de631
https://github.com/p-sawicki
p-sawickihttps://github.com/p-sawicki
Apr 24, 2026 https://github.com/python/mypy/pull/21299#pullrequestreview-4169945161
View reviewed changes https://github.com/python/mypy/pull/21299/files/0269b7a46afecc9cffdcf4661b45e065356de631
p-sawickihttps://github.com/p-sawicki
https://github.com/python/mypy/pull/21299#pullrequestreview-4169945161
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21299
mypyc/codegen/emit.pyhttps://github.com/python/mypy/pull/21299/files/0269b7a46afecc9cffdcf4661b45e065356de631#diff-09b5e6725588fd1151b6c533dc4c0e748d73d6b4e85799a7737959175832fdee
Please reload this pagehttps://github.com/python/mypy/pull/21299
mypyc/codegen/emitmodule.pyhttps://github.com/python/mypy/pull/21299/files/0269b7a46afecc9cffdcf4661b45e065356de631#diff-80ac0f76c35467fef7c1d0dbf21f8ffa464bdcc1272a8ac87da70c1228cad9ea
Please reload this pagehttps://github.com/python/mypy/pull/21299
mypyc/ir/class_ir.pyhttps://github.com/python/mypy/pull/21299/files/0269b7a46afecc9cffdcf4661b45e065356de631#diff-153a18883446e6d112632123dc59e64b60c6182888709afa780b3f4445295d63
Please reload this pagehttps://github.com/python/mypy/pull/21299
mypyc/lib-rt/module_shim_no_gil_multiphase.tmplhttps://github.com/python/mypy/pull/21299/files/0269b7a46afecc9cffdcf4661b45e065356de631#diff-77861d5d0a4d0b9690ca1b791ede248ef283fd6f031419fb82e6cb1905560627
p-sawickihttps://github.com/p-sawicki
Apr 24, 2026https://github.com/python/mypy/pull/21299#discussion_r3137427522
Please reload this pagehttps://github.com/python/mypy/pull/21299
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21299
VaggelisDhttps://github.com/VaggelisD
Apr 27, 2026https://github.com/python/mypy/pull/21299#discussion_r3146756193
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21299
mypyc/lib-rt/module_shim.tmplhttps://github.com/python/mypy/pull/21299/files/0269b7a46afecc9cffdcf4661b45e065356de631#diff-f0b586abe2a43b422d7388c92ec32a774fc17b5db2a544e734fcab7201445512
p-sawickihttps://github.com/p-sawicki
Apr 24, 2026https://github.com/python/mypy/pull/21299#discussion_r3137434545
Please reload this pagehttps://github.com/python/mypy/pull/21299
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21299
VaggelisDhttps://github.com/VaggelisD
April 27, 2026 10:18https://github.com/python/mypy/pull/21299#commits-pushed-a7630bb
https://github.com/VaggelisD
[mypyc] Address review feedback on separate=True fixeshttps://github.com/python/mypy/pull/21299/commits/a7630bb4b92b997789d158cd21ba4af923f12447
a7630bbhttps://github.com/python/mypy/pull/21299/commits/a7630bb4b92b997789d158cd21ba4af923f12447
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/21299/commits/6d488bfb6434b68fb01062a572154a1d07659cec
6d488bfhttps://github.com/python/mypy/pull/21299/commits/6d488bfb6434b68fb01062a572154a1d07659cec
https://pre-commit.cihttps://pre-commit.ci
https://github.com/VaggelisD
[mypyc] Revert PyObject_GetOptionalAttrString in module shimshttps://github.com/python/mypy/pull/21299/commits/812a3c8584aea004ef6a818dce8304322da1682f
812a3c8https://github.com/python/mypy/pull/21299/commits/812a3c8584aea004ef6a818dce8304322da1682f
https://github.com/VaggelisD
VaggelisDhttps://github.com/VaggelisD
force-pushedhttps://github.com/python/mypy/compare/32426f101fad759228273eb77abf0486f1232deb..812a3c8584aea004ef6a818dce8304322da1682f
32426f1https://github.com/python/mypy/commit/32426f101fad759228273eb77abf0486f1232deb
812a3c8https://github.com/python/mypy/commit/812a3c8584aea004ef6a818dce8304322da1682f
Compare https://github.com/python/mypy/compare/32426f101fad759228273eb77abf0486f1232deb..812a3c8584aea004ef6a818dce8304322da1682f
April 28, 2026 11:15https://github.com/python/mypy/pull/21299#event-24944728342
https://github.com/p-sawicki
p-sawickihttps://github.com/p-sawicki
Apr 28, 2026 https://github.com/python/mypy/pull/21299#pullrequestreview-4189850411
View reviewed changes https://github.com/python/mypy/pull/21299/files/812a3c8584aea004ef6a818dce8304322da1682f
p-sawickihttps://github.com/p-sawicki
https://github.com/python/mypy/pull/21299#pullrequestreview-4189850411
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21299
https://github.com/p-sawicki
p-sawickihttps://github.com/p-sawicki
c3571fahttps://github.com/python/mypy/commit/c3571fadbead12b3ae5c130805d5c02ebdddf48a
Apr 28, 2026https://github.com/python/mypy/pull/21299#event-24952811489
Please reload this pagehttps://github.com/python/mypy/pull/21299
https://github.com/VaggelisD
VaggelisDhttps://github.com/VaggelisD
Apr 29, 2026 https://github.com/python/mypy/pull/21299#ref-pullrequest-4350241325
[mypyc] Enable incremental self-compilation #21369 https://github.com/python/mypy/pull/21369
VaggelisDhttps://github.com/VaggelisD
Apr 29, 2026 https://github.com/python/mypy/pull/21299#ref-commit-5aea6ec
https://github.com/VaggelisD
[mypyc] Make separate=True work for mypy self-compilehttps://github.com/VaggelisD/sqlglot-mypy/commit/5aea6ec85bf047365eb6c233cf174d0606ea1b31
5aea6echttps://github.com/VaggelisD/sqlglot-mypy/commit/5aea6ec85bf047365eb6c233cf174d0606ea1b31
python#21299https://github.com/python/mypy/pull/21299
p-sawickihttps://github.com/p-sawicki
May 8, 2026 https://github.com/python/mypy/pull/21299#ref-commit-db297c5
https://github.com/VaggelisD
[mypyc] Enable incremental self-compilation (https://github.com/python/mypy/commit/db297c5f14415ffdb8352fb3aafd34cbb4254b19
#21369https://github.com/python/mypy/pull/21369
)https://github.com/python/mypy/commit/db297c5f14415ffdb8352fb3aafd34cbb4254b19
db297c5https://github.com/python/mypy/commit/db297c5f14415ffdb8352fb3aafd34cbb4254b19
#21299https://github.com/python/mypy/pull/21299
mypyc/mypyc#1068https://github.com/mypyc/mypyc/issues/1068
JukkaLhttps://github.com/JukkaL
May 10, 2026 https://github.com/python/mypy/pull/21299#ref-commit-2b1eb58
https://github.com/VaggelisD
https://github.com/JukkaL
[mypyc] Enable incremental self-compilation (https://github.com/python/mypy/commit/2b1eb58a250c5f1eb4ef5fb1f312ff528c5a1d4e
#21369https://github.com/python/mypy/pull/21369
)https://github.com/python/mypy/commit/2b1eb58a250c5f1eb4ef5fb1f312ff528c5a1d4e
2b1eb58https://github.com/python/mypy/commit/2b1eb58a250c5f1eb4ef5fb1f312ff528c5a1d4e
#21299https://github.com/python/mypy/pull/21299
mypyc/mypyc#1068https://github.com/mypyc/mypyc/issues/1068
https://github.com/p-sawicki
p-sawickihttps://github.com/p-sawicki
May 19, 2026 https://github.com/python/mypy/pull/21299#ref-pullrequest-4439101469
[mypyc] Fix cross-group call to inherited __mypyc_defaults_setup #21481 https://github.com/python/mypy/pull/21481
https://github.com/georgesittas
georgesittashttps://github.com/georgesittas
May 19, 2026 https://github.com/python/mypy/pull/21299#ref-pullrequest-4478199485
[mypyc] Use emitter.native_function_call() in emit_attr_defaults_func_call VaggelisD/sqlglot-mypy#7 https://github.com/VaggelisD/sqlglot-mypy/pull/7
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%2F21299
https://github.com/p-sawicki
p-sawicki https://github.com/p-sawicki
https://github.com/python/mypy/pull/21299/files/812a3c8584aea004ef6a818dce8304322da1682f
Please reload this pagehttps://github.com/python/mypy/pull/21299
https://github.com/VaggelisD
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.