Title: Spurious "Cannot inherit non-frozen dataclass from a frozen one" · Issue #14952 · python/mypy · GitHub
Open Graph Title: Spurious "Cannot inherit non-frozen dataclass from a frozen one" · Issue #14952 · python/mypy
X Title: Spurious "Cannot inherit non-frozen dataclass from a frozen one" · Issue #14952 · python/mypy
Description: I'll produce a MWE when I have more time, but this is error is happening on all my projects that use dataclass_transform with frozen=True. For example, https://github.com/NeilGirdhar/tjax/ Simply clone, and run MyPy twice. Thus, it appea...
Open Graph Description: I'll produce a MWE when I have more time, but this is error is happening on all my projects that use dataclass_transform with frozen=True. For example, https://github.com/NeilGirdhar/tjax/ Simply c...
X Description: I'll produce a MWE when I have more time, but this is error is happening on all my projects that use dataclass_transform with frozen=True. For example, https://github.com/NeilGirdhar/tjax/ Simp...
Opengraph URL: https://github.com/python/mypy/issues/14952
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Spurious \"Cannot inherit non-frozen dataclass from a frozen one\"","articleBody":"I'll produce a MWE when I have more time, but this is error is happening on all my projects that use `dataclass_transform` with `frozen=True`. For example, https://github.com/NeilGirdhar/tjax/\r\n\r\nSimply clone, and run MyPy _twice_. Thus, it appears there's something missing from or wrongly added to the MyPy cache.\r\n\r\n```\r\ntjax/_src/fixed_point/simple_scan.py: note: In class \"SimpleScan\":\r\ntjax/_src/fixed_point/simple_scan.py:15: error: Cannot inherit non-frozen dataclass from a frozen one [misc]\r\n class SimpleScan(IteratedFunctionBase[Parameters, State, Trajectory, State],\r\n...\r\n```\r\nCC @wesleywright ","author":{"url":"https://github.com/NeilGirdhar","@type":"Person","name":"NeilGirdhar"},"datePublished":"2023-03-23T23:52:55Z","url":"https://github.com/python/mypy/issues/14952"}
| 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:76c25a0d-2e8e-0c6c-96fa-96c24b7363f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A178:1D7BA0:B0B641:EC7353:6B0049DC |
| html-safe-nonce | 07a25b9d37d3e1b9cbe83a5bc49ada2f01df1804f5bfa138d975acdfa7c1089c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTc4OjFEN0JBMDpCMEI2NDE6RUM3MzUzOjZCMDA0OURDIiwidmlzaXRvcl9pZCI6IjY1NjMyMzA3MDQ2NzM1MDc4MDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f9c9121adc5d8eec16ededb3f5f19e633b9baadf6c8e15fcb7460e0bf834a81d |
| hovercard-subject-tag | issue:1638501393 |
| 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/14952/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c1d5583a1eef28d8362333c6aca421c81672642b2ae8256f182cdf75531efcd7/python/mypy/issues/14952 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1d5583a1eef28d8362333c6aca421c81672642b2ae8256f182cdf75531efcd7/python/mypy/issues/14952 |
| og:image:alt | I'll produce a MWE when I have more time, but this is error is happening on all my projects that use dataclass_transform with frozen=True. For example, https://github.com/NeilGirdhar/tjax/ Simply c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NeilGirdhar |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width