| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:0c0a95be-f7cb-1913-7757-5de4eef22d5d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9154:3A7693:29F838D:3921925:6B004C14 |
| html-safe-nonce | 3c39c4f7b3b6b0567e709367546fed850dd7084bed43a5c730d23f0f0a037e10 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTU0OjNBNzY5MzoyOUY4MzhEOjM5MjE5MjU6NkIwMDRDMTQiLCJ2aXNpdG9yX2lkIjoiNDExMDEwNTY1NjE5NzkyNTkwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b4f7237c03e9d292d249db8e18f752125c25ed54ec62f27589d85e755f20f2ba |
| hovercard-subject-tag | pull_request:2109561645 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/mypy/17886/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/320e6d434b620cbf27d43c2e14663f932922650ecdf7c40352935e2ab832b0ae/python/mypy/pull/17886 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/320e6d434b620cbf27d43c2e14663f932922650ecdf7c40352935e2ab832b0ae/python/mypy/pull/17886 |
| og:image:alt | Fixes #9612
This change allows to gain more efficiency where classes are annotated with @final bypassing entirely the vtable for method calls and property accessors.
For example:
In
@final
class Ve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jairov4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| turbo-cache-control | no-cache |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/mypy/pull/17886#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17886 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17886 |
| 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 |
| Reload | https://github.com/python/mypy/pull/17886 |
| Reload | https://github.com/python/mypy/pull/17886 |
| Reload | https://github.com/python/mypy/pull/17886 |
| python | https://github.com/python |
| mypy | https://github.com/python/mypy |
| Code | https://github.com/python/mypy |
| Issues2.7k (2.7k) | https://github.com/python/mypy/issues |
| Pull requests546 (546) | 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/insights |
| https://github.com/python/mypy |
| JukkaL | https://github.com/JukkaL |
| python:master | https://github.com/python/mypy/tree/master |
| jairov4:mypyc-opt-final | https://github.com/jairov4/mypy/tree/mypyc-opt-final |
| Conversation | https://github.com/python/mypy/pull/17886 |
| Commits15 (15) | https://github.com/python/mypy/pull/17886/commits |
| Checks | https://github.com/python/mypy/pull/17886/checks |
| Files changed | https://github.com/python/mypy/pull/17886/files |
| [mypyc] Optimize calls to final classes | https://github.com/python/mypy/pull/17886#top |
| JukkaL | https://github.com/JukkaL |
| python:master | https://github.com/python/mypy/tree/master |
| jairov4:mypyc-opt-final | https://github.com/jairov4/mypy/tree/mypyc-opt-final |
|
| https://github.com/jairov4 |
| jairov4 | https://github.com/jairov4 |
| Oct 6, 2024 | https://github.com/python/mypy/pull/17886#issue-2568882194 |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| #9612 | https://github.com/python/mypy/issues/9612 |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| jairov4 | https://github.com/jairov4 |
| October 6, 2024 15:24 | https://github.com/python/mypy/pull/17886#commits-pushed-45dbf03 |
|
| https://github.com/jairov4 |
| Optimize calls to final classes | https://github.com/python/mypy/pull/17886/commits/45dbf03f08e0cb29eaf173e24dcf545771acdcd9 |
| 45dbf03 | https://github.com/python/mypy/pull/17886/commits/45dbf03f08e0cb29eaf173e24dcf545771acdcd9 |
|
| https://github.com/marketplace/pre-commit-ci |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/python/mypy/pull/17886/commits/6f16840f035917f926147cfc55b887846e4d1d29 |
| 6f16840 | https://github.com/python/mypy/pull/17886/commits/6f16840f035917f926147cfc55b887846e4d1d29 |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/jairov4 |
| Assert rtype | https://github.com/python/mypy/pull/17886/commits/38a995f6adab6ebaf8c8f446928b708c6dcb54df |
| 38a995f | https://github.com/python/mypy/pull/17886/commits/38a995f6adab6ebaf8c8f446928b708c6dcb54df |
|
| https://github.com/marketplace/pre-commit-ci |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/python/mypy/pull/17886/commits/46ce3e687c7029376fa856482d82dfed636719c9 |
| 46ce3e6 | https://github.com/python/mypy/pull/17886/commits/46ce3e687c7029376fa856482d82dfed636719c9 |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/jairov4 |
| Add test case for | https://github.com/python/mypy/pull/17886/commits/d44bd16bb23b2eb3ddf3021b0d886f0109b59191 |
| @Final | https://github.com/Final |
| attribute | https://github.com/python/mypy/pull/17886/commits/d44bd16bb23b2eb3ddf3021b0d886f0109b59191 |
| d44bd16 | https://github.com/python/mypy/pull/17886/commits/d44bd16bb23b2eb3ddf3021b0d886f0109b59191 |
|
| https://github.com/jairov4 |
| Rename new test cases | https://github.com/python/mypy/pull/17886/commits/b4b37efb5b6b24b27387ccae5ff5db024f5a835d |
| b4b37ef | https://github.com/python/mypy/pull/17886/commits/b4b37efb5b6b24b27387ccae5ff5db024f5a835d |
|
| https://github.com/jairov4 |
| ClassIR serialization | https://github.com/python/mypy/pull/17886/commits/92cace581adca75a49d7e6a0f92b181262f9d62f |
| 92cace5 | https://github.com/python/mypy/pull/17886/commits/92cace581adca75a49d7e6a0f92b181262f9d62f |
|
| https://github.com/jairov4 |
| ClassIR deserialization | https://github.com/python/mypy/pull/17886/commits/1d6cacd622be2a3fd9debe407a80505c31eca226 |
| 1d6cacd | https://github.com/python/mypy/pull/17886/commits/1d6cacd622be2a3fd9debe407a80505c31eca226 |
| https://github.com/jairov4 |
| jairov4 | https://github.com/jairov4 |
| Oct 7, 2024 | https://github.com/python/mypy/pull/17886#issuecomment-2395884419 |
| @JukkaL | https://github.com/JukkaL |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| jairov4 | https://github.com/jairov4 |
| October 7, 2024 07:42 | https://github.com/python/mypy/pull/17886#commits-pushed-88a2ccf |
|
| https://github.com/jairov4 |
| Restore the placement vtable to preserve the PyObject layout | https://github.com/python/mypy/pull/17886/commits/88a2ccf182fe45cd0dcf3d21dd151b7678e77d29 |
| 88a2ccf | https://github.com/python/mypy/pull/17886/commits/88a2ccf182fe45cd0dcf3d21dd151b7678e77d29 |
|
| https://github.com/marketplace/pre-commit-ci |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/python/mypy/pull/17886/commits/59f3f13e716ae3c3d0c0bd433fa9df76e4b6534a |
| 59f3f13 | https://github.com/python/mypy/pull/17886/commits/59f3f13e716ae3c3d0c0bd433fa9df76e4b6534a |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/jairov4 |
| Restore the placement vtable to preserve the PyObject layout | https://github.com/python/mypy/pull/17886/commits/232db96f90795d4f8710a5316353eb3a19ebf4ee |
| 232db96 | https://github.com/python/mypy/pull/17886/commits/232db96f90795d4f8710a5316353eb3a19ebf4ee |
|
| https://github.com/jairov4 |
| revert to initialize vtable always | https://github.com/python/mypy/pull/17886/commits/f36c774014debb5e1540ed90b3befb9bad04535a |
| f36c774 | https://github.com/python/mypy/pull/17886/commits/f36c774014debb5e1540ed90b3befb9bad04535a |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
|
Oct 10, 2024
| https://github.com/python/mypy/pull/17886#pullrequestreview-2359543079 |
|
View reviewed changes
| https://github.com/python/mypy/pull/17886/files/f36c774014debb5e1540ed90b3befb9bad04535a |
| JukkaL | https://github.com/JukkaL |
| https://github.com/python/mypy/pull/17886#pullrequestreview-2359543079 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| mypyc/irbuild/classdef.py | https://github.com/python/mypy/pull/17886/files/f36c774014debb5e1540ed90b3befb9bad04535a#diff-072d734fdb53b14cd1bdb5f8575d41dabd897708687cdc8c6cac4352b3e75bf6 |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| mypyc/codegen/emitfunc.py | https://github.com/python/mypy/pull/17886/files/f36c774014debb5e1540ed90b3befb9bad04535a#diff-13d4e0cda55df0dfa7aee8e93496ed9625df4bbcff9bb3e19c920a45b87a717e |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| mypyc/test-data/run-classes.test | https://github.com/python/mypy/pull/17886/files/f36c774014debb5e1540ed90b3befb9bad04535a#diff-5a56e81ec59766907dfaa6ce1e0b60fc607253985118b4e2ff6a7b59d20dfd95 |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| jairov4 | https://github.com/jairov4 |
| October 13, 2024 19:11 | https://github.com/python/mypy/pull/17886#commits-pushed-a4872ac |
|
| https://github.com/jairov4 |
| Address PR comments | https://github.com/python/mypy/pull/17886/commits/a4872ac81366dd3cb14c10f4dad0af9ba5a361d3 |
| a4872ac | https://github.com/python/mypy/pull/17886/commits/a4872ac81366dd3cb14c10f4dad0af9ba5a361d3 |
|
| https://github.com/marketplace/pre-commit-ci |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/python/mypy/pull/17886/commits/220cfde32044ee629f56fe926da9df6f8d0e9349 |
| 220cfde | https://github.com/python/mypy/pull/17886/commits/220cfde32044ee629f56fe926da9df6f8d0e9349 |
| https://pre-commit.ci | https://pre-commit.ci |
|
| https://github.com/jairov4 |
| Add new test case | https://github.com/python/mypy/pull/17886/commits/b664fbae893fdf78ac428179a71d7cfecc44e8d8 |
| b664fba | https://github.com/python/mypy/pull/17886/commits/b664fbae893fdf78ac428179a71d7cfecc44e8d8 |
| https://github.com/jairov4 |
| jairov4 | https://github.com/jairov4 |
| Oct 14, 2024 | https://github.com/python/mypy/pull/17886#issuecomment-2409646231 |
| @JukkaL | https://github.com/JukkaL |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| https://github.com/jairov4 |
| jairov4 | https://github.com/jairov4 |
|
Oct 14, 2024
| https://github.com/python/mypy/pull/17886#ref-pullrequest-2584523540 |
|
[mypyc] Optimize dunder methods
#17934
| https://github.com/python/mypy/pull/17934 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
|
Oct 14, 2024
| https://github.com/python/mypy/pull/17886#pullrequestreview-2365821117 |
|
View reviewed changes
| https://github.com/python/mypy/pull/17886/files/b664fbae893fdf78ac428179a71d7cfecc44e8d8 |
| JukkaL | https://github.com/JukkaL |
| https://github.com/python/mypy/pull/17886#pullrequestreview-2365821117 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
| https://github.com/JukkaL |
| JukkaL | https://github.com/JukkaL |
| cbd96f9 | https://github.com/python/mypy/commit/cbd96f96a67bc5c2088457fcd30742644614f00b |
| Oct 14, 2024 | https://github.com/python/mypy/pull/17886#event-14628941142 |
| https://github.com/jairov4 |
| jairov4 | https://github.com/jairov4 |
| October 15, 2024 21:42 | https://github.com/python/mypy/pull/17886#event-14664931383 |
| https://github.com/danceratopz |
| danceratopz | https://github.com/danceratopz |
|
Jun 9, 2026
| https://github.com/python/mypy/pull/17886#ref-pullrequest-4542229731 |
|
chore(specs): add final decorator
ethereum/execution-specs#2934
| https://github.com/ethereum/execution-specs/pull/2934 |
| https://github.co/hiddenchars |
| https://github.com/python/mypy/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17886 |
|
| https://github.com/JukkaL |
|
JukkaL
| https://github.com/JukkaL |
|
| https://github.com/python/mypy/pull/17886/files/b664fbae893fdf78ac428179a71d7cfecc44e8d8 |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
|
[mypyc] support of @final types
| https://github.com/python/mypy/issues/9612 |
| Please reload this page | https://github.com/python/mypy/pull/17886 |
|
| https://github.com/jairov4 |
|
| https://github.com/JukkaL |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |