René's URL Explorer Experiment


Title: Reduce TypeForm recognition slowdown (Take 3) by davidfstr · Pull Request #21833 · python/mypy · GitHub

Open Graph Title: Reduce TypeForm recognition slowdown (Take 3) by davidfstr · Pull Request #21833 · python/mypy

X Title: Reduce TypeForm recognition slowdown (Take 3) by davidfstr · Pull Request #21833 · python/mypy

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

Open Graph Description: References #21262. Replaces #21585 and obsoletes #21596. Summary Enabling TypeForm by default (referenced #21262) made SemanticAnalyzer.try_parse_as_type_expression run eagerly on every expression ...

X Description: References #21262. Replaces #21585 and obsoletes #21596. Summary Enabling TypeForm by default (referenced #21262) made SemanticAnalyzer.try_parse_as_type_expression run eagerly on every expression ...

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

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:f8c7cba4-f8c5-a04d-9935-ca5b27eebbde
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id87E0:1A77D:156200:1CC3DA:6B001F0A
html-safe-nonce5749a5c74da3e8cd3a7df9f7a07d57d15ee62e3dbae10dda49d0b6da772309d3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0UwOjFBNzdEOjE1NjIwMDoxQ0MzREE6NkIwMDFGMEEiLCJ2aXNpdG9yX2lkIjoiOTAwNTk3NzQzNzEyNDY5Nzg2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6ea2706721a225a1bee845265331a78138c492f3149cd5a8d2a049b0cbfa1a5a
hovercard-subject-tagpull_request:4249457235
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/21833/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0b85cd23c30f8c74b5a0697782eb863de09f01fbbf7902540091f885c882502a/python/mypy/pull/21833
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0b85cd23c30f8c74b5a0697782eb863de09f01fbbf7902540091f885c882502a/python/mypy/pull/21833
og:image:altReferences #21262. Replaces #21585 and obsoletes #21596. Summary Enabling TypeForm by default (referenced #21262) made SemanticAnalyzer.try_parse_as_type_expression run eagerly on every expression ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedavidfstr
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/21833#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21833
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%2F21833
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/21833
Reloadhttps://github.com/python/mypy/pull/21833
Reloadhttps://github.com/python/mypy/pull/21833
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 requests546 (546)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
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
davidfstr:f/typeform_complete--take3.2https://github.com/davidfstr/mypy/tree/f/typeform_complete--take3.2
Conversationhttps://github.com/python/mypy/pull/21833
Commits12 (12)https://github.com/python/mypy/pull/21833/commits
Checkshttps://github.com/python/mypy/pull/21833/checks
Files changedhttps://github.com/python/mypy/pull/21833/files
Reduce TypeForm recognition slowdown (Take 3)https://github.com/python/mypy/pull/21833#top
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
davidfstr:f/typeform_complete--take3.2https://github.com/davidfstr/mypy/tree/f/typeform_complete--take3.2
https://github.com/davidfstr
davidfstrhttps://github.com/davidfstr
Aug 11, 2026https://github.com/python/mypy/pull/21833#issue-5115773860
#21262https://github.com/python/mypy/pull/21262
#21585https://github.com/python/mypy/pull/21585
#21596https://github.com/python/mypy/pull/21596
#21262https://github.com/python/mypy/pull/21262
#21585https://github.com/python/mypy/pull/21585
#21585https://github.com/python/mypy/pull/21585
#21262https://github.com/python/mypy/pull/21262
#21262https://github.com/python/mypy/pull/21262
#21585https://github.com/python/mypy/pull/21585
#21585https://github.com/python/mypy/pull/21585
#21585https://github.com/python/mypy/pull/21585
Enhance/extend general & TypeForm-specific performance instrumentation #21832https://github.com/python/mypy/pull/21832
Please reload this pagehttps://github.com/python/mypy/pull/21833
davidfstrhttps://github.com/davidfstr
August 10, 2026 06:07https://github.com/python/mypy/pull/21833#commits-pushed-30c4a0b
https://github.com/davidfstr
https://github.com/claude
TypeForm: Identifier-strings: Early-reject Var-with-concrete-Instance…https://github.com/python/mypy/pull/21833/commits/30c4a0bf08bbe2ffca1711520026ab038c857625
30c4a0bhttps://github.com/python/mypy/pull/21833/commits/30c4a0bf08bbe2ffca1711520026ab038c857625
https://github.com/davidfstr
https://github.com/claude
TypeForm: Identifier-strings: Reorder early-reject checks by rejectio…https://github.com/python/mypy/pull/21833/commits/a60977603d422cc0c600c91a6029a5c294d4939d
a609776https://github.com/python/mypy/pull/21833/commits/a60977603d422cc0c600c91a6029a5c294d4939d
https://github.com/davidfstr
https://github.com/claude
TypeForm: Identifier-strings: Early-reject functions and modules in t…https://github.com/python/mypy/pull/21833/commits/8aea7afba1bbeeae2f3ccbab69ed9f6fc8874587
8aea7afhttps://github.com/python/mypy/pull/21833/commits/8aea7afba1bbeeae2f3ccbab69ed9f6fc8874587
https://github.com/davidfstr
https://github.com/claude
TypeForm: Other-strings: Early-reject non-type characters in try_pars…https://github.com/python/mypy/pull/21833/commits/159885c617148dba47c3687a4c158c00757f0d06
159885chttps://github.com/python/mypy/pull/21833/commits/159885c617148dba47c3687a4c158c00757f0d06
https://github.com/davidfstr
https://github.com/claude
TypeForm: Dotted-identifier-strings: Early-reject non-type leftmost c…https://github.com/python/mypy/pull/21833/commits/b2b43fefaa6347edda3b750dacaa565675611e3b
b2b43fehttps://github.com/python/mypy/pull/21833/commits/b2b43fefaa6347edda3b750dacaa565675611e3b
Reduce TypeForm recognition slowdown: 2 identifier fast-reject filters #21596 https://github.com/python/mypy/pull/21596
Reduce TypeForm recognition slowdown #21585 https://github.com/python/mypy/pull/21585
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21833
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Sep 3, 2026 https://github.com/python/mypy/pull/21833#ref-issue-5339464451
2.4 Release Planning #21935 https://github.com/python/mypy/issues/21935
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Sep 6, 2026 https://github.com/python/mypy/pull/21833#pullrequestreview-5125538363
View reviewed changes https://github.com/python/mypy/pull/21833/files/b2b43fefaa6347edda3b750dacaa565675611e3b
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/21833#pullrequestreview-5125538363
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21833
mypy/semanal.pyhttps://github.com/python/mypy/pull/21833/files/b2b43fefaa6347edda3b750dacaa565675611e3b#diff-f782aad4853edceb67a88efe43d2869579d075a77b8e8dd2add91e818a9fa164
Please reload this pagehttps://github.com/python/mypy/pull/21833
mypy/semanal.pyhttps://github.com/python/mypy/pull/21833/files/b2b43fefaa6347edda3b750dacaa565675611e3b#diff-f782aad4853edceb67a88efe43d2869579d075a77b8e8dd2add91e818a9fa164
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Sep 10, 2026https://github.com/python/mypy/pull/21833#issuecomment-5618021875
@davidfstrhttps://github.com/davidfstr
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/davidfstr
davidfstrhttps://github.com/davidfstr
Sep 11, 2026https://github.com/python/mypy/pull/21833#issuecomment-5634933206
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/davidfstr
davidfstrhttps://github.com/davidfstr
Sep 11, 2026https://github.com/python/mypy/pull/21833#issuecomment-5636829418
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Sep 12, 2026https://github.com/python/mypy/pull/21833#issuecomment-5647491639
Please reload this pagehttps://github.com/python/mypy/pull/21833
davidfstrhttps://github.com/davidfstr
September 15, 2026 22:02https://github.com/python/mypy/pull/21833#commits-pushed-b7b2372
https://github.com/davidfstr
fixup! TypeForm: Dotted-identifier-strings: Early-reject non-type lef…https://github.com/python/mypy/pull/21833/commits/b7b23722998bebfd1dd9750e9347a8566b0276bb
b7b2372https://github.com/python/mypy/pull/21833/commits/b7b23722998bebfd1dd9750e9347a8566b0276bb
https://github.com/davidfstr
TypeForm: Drop unreachable special-form guard on IndexExpr MemberExpr…https://github.com/python/mypy/pull/21833/commits/eb7349b458c7e8a713a1863e7cbb078ba7af25ee
eb7349bhttps://github.com/python/mypy/pull/21833/commits/eb7349b458c7e8a713a1863e7cbb078ba7af25ee
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21833
davidfstrhttps://github.com/davidfstr
September 16, 2026 13:29https://github.com/python/mypy/pull/21833#commits-pushed-c444abd
https://github.com/davidfstr
TypeForm: Fix recognition of additional single-identifier special formshttps://github.com/python/mypy/pull/21833/commits/c444abd984a3d012898fc393dbf82fb266aaccd4
c444abdhttps://github.com/python/mypy/pull/21833/commits/c444abd984a3d012898fc393dbf82fb266aaccd4
https://github.com/davidfstr
TypeForm: Alter recognition of special forms to not depend on fragile…https://github.com/python/mypy/pull/21833/commits/c43ce15bf9c33cc93bb5dc45960e5b37a70b659f
c43ce15https://github.com/python/mypy/pull/21833/commits/c43ce15bf9c33cc93bb5dc45960e5b37a70b659f
https://github.com/davidfstr
TypeForm: Early-reject variable references that are known to hold som…https://github.com/python/mypy/pull/21833/commits/95ecb9ee0309d6c6c37d0c7cddf0b2dade27c91d
95ecb9ehttps://github.com/python/mypy/pull/21833/commits/95ecb9ee0309d6c6c37d0c7cddf0b2dade27c91d
https://github.com/davidfstr
davidfstrhttps://github.com/davidfstr
Sep 16, 2026https://github.com/python/mypy/pull/21833#issuecomment-5701877538
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21833
https://github.com/davidfstr
davidfstrhttps://github.com/davidfstr
Sep 16, 2026https://github.com/python/mypy/pull/21833#issuecomment-5702065692
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Sep 16, 2026 https://github.com/python/mypy/pull/21833#pullrequestreview-5227743607
View reviewed changes https://github.com/python/mypy/pull/21833/files/95ecb9ee0309d6c6c37d0c7cddf0b2dade27c91d
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/21833#pullrequestreview-5227743607
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21833
test-data/unit/check-typeform.testhttps://github.com/python/mypy/pull/21833/files/95ecb9ee0309d6c6c37d0c7cddf0b2dade27c91d#diff-7eb6dd078ec207ce7e0023740496fbe4e1747b32478ca2c7448de97533acdbc1
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/davidfstr
davidfstrhttps://github.com/davidfstr
Sep 17, 2026https://github.com/python/mypy/pull/21833#issuecomment-5715718465
Please reload this pagehttps://github.com/python/mypy/pull/21833
davidfstrhttps://github.com/davidfstr
September 18, 2026 08:44https://github.com/python/mypy/pull/21833#commits-pushed-f21234e
https://github.com/davidfstr
fixup! TypeForm: Alter recognition of special forms to not depend on …https://github.com/python/mypy/pull/21833/commits/f21234ebfbdd1aba0bf0c109176b5532b050ae80
f21234ehttps://github.com/python/mypy/pull/21833/commits/f21234ebfbdd1aba0bf0c109176b5532b050ae80
https://github.com/davidfstr
TypeForm: Refactor extract early-reject logic for string literals to …https://github.com/python/mypy/pull/21833/commits/e0d7703ad2180481000b503e35d43a93955c3d47
e0d7703https://github.com/python/mypy/pull/21833/commits/e0d7703ad2180481000b503e35d43a93955c3d47
https://github.com/davidfstr
davidfstrhttps://github.com/davidfstr
Sep 18, 2026https://github.com/python/mypy/pull/21833#issuecomment-5730378240
Please reload this pagehttps://github.com/python/mypy/pull/21833
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 18, 2026https://github.com/python/mypy/pull/21833#issuecomment-5730531922
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Sep 18, 2026 https://github.com/python/mypy/pull/21833#pullrequestreview-5249086076
View reviewed changes https://github.com/python/mypy/pull/21833/files/e0d7703ad2180481000b503e35d43a93955c3d47
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/21833#pullrequestreview-5249086076
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
6632e40https://github.com/python/mypy/commit/6632e40b0e9ba78e8d93c4b654c585b1842ebbe9
Sep 18, 2026https://github.com/python/mypy/pull/21833#event-31397076867
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/davidfstr
davidfstrhttps://github.com/davidfstr
Sep 19, 2026https://github.com/python/mypy/pull/21833#issuecomment-5738562675
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/mypy/pull/21833
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%2F21833
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/mypy/pull/21833/files/b2b43fefaa6347edda3b750dacaa565675611e3b
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/21833/files/e0d7703ad2180481000b503e35d43a93955c3d47
Please reload this pagehttps://github.com/python/mypy/pull/21833
Please reload this pagehttps://github.com/python/mypy/pull/21833
https://github.com/davidfstr
https://github.com/ilevkivskyi
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.