Title: AssertionError in deeply nested class scenario (incremental with warm cache) · Issue #2931 · python/mypy · GitHub
Open Graph Title: AssertionError in deeply nested class scenario (incremental with warm cache) · Issue #2931 · python/mypy
X Title: AssertionError in deeply nested class scenario (incremental with warm cache) · Issue #2931 · python/mypy
Description: This is a small remainder of #2535 Example to reproduce: run mypy -i main.py twice (without touching any files in between) where: main.py import ntcrash ntcrash.py from typing import NamedTuple class C: def f(self) -> None: class D: clas...
Open Graph Description: This is a small remainder of #2535 Example to reproduce: run mypy -i main.py twice (without touching any files in between) where: main.py import ntcrash ntcrash.py from typing import NamedTuple cla...
X Description: This is a small remainder of #2535 Example to reproduce: run mypy -i main.py twice (without touching any files in between) where: main.py import ntcrash ntcrash.py from typing import NamedTuple cla...
Opengraph URL: https://github.com/python/mypy/issues/2931
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AssertionError in deeply nested class scenario (incremental with warm cache)","articleBody":"This is a small remainder of #2535 \r\n\r\nExample to reproduce: run ``mypy -i main.py`` twice (without touching any files in between) where:\r\n* main.py\r\n```python\r\nimport ntcrash\r\n```\r\n* ntcrash.py\r\n```python\r\nfrom typing import NamedTuple\r\n\r\nclass C:\r\n def f(self) -> None:\r\n class D:\r\n class E:\r\n def g(self) -> None:\r\n A = NamedTuple('A', [('x', int), ('y', int)])\r\n self.a = A(1, 1)\r\n self.c = D.E().a\r\n```\r\nPossible fix would be to store all \"anonymous\" classes in ``globals``.","author":{"url":"https://github.com/ilevkivskyi","@type":"Person","name":"ilevkivskyi"},"datePublished":"2017-03-01T13:40:43Z","url":"https://github.com/python/mypy/issues/2931"}
| 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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bc998a54-789a-59dd-3344-aa6b2289a02a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C22C:2A4B31:4CD690:6796E7:6B003028 |
| html-safe-nonce | a7fefdc65e67315134ba929925c7ce20786da0e2931db4324dddd1e1695d4acb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjJDOjJBNEIzMTo0Q0Q2OTA6Njc5NkU3OjZCMDAzMDI4IiwidmlzaXRvcl9pZCI6IjU0NzkxNTYxOTc2NTMzNDA1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 66d7dd046171ef666eaba2ad9a1d167c89fa76cfad7527516c3210dd9382623f |
| hovercard-subject-tag | issue:211084128 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/2931/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d470012feaf7139c4aff0eef4523d27b650a135b884d44e0314b6e601da23454/python/mypy/issues/2931 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d470012feaf7139c4aff0eef4523d27b650a135b884d44e0314b6e601da23454/python/mypy/issues/2931 |
| og:image:alt | This is a small remainder of #2535 Example to reproduce: run mypy -i main.py twice (without touching any files in between) where: main.py import ntcrash ntcrash.py from typing import NamedTuple cla... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilevkivskyi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width