Title: Support `slots=True` in `attrs` · Issue #11487 · python/mypy · GitHub
Open Graph Title: Support `slots=True` in `attrs` · Issue #11487 · python/mypy
X Title: Support `slots=True` in `attrs` · Issue #11487 · python/mypy
Description: Similar to #11483 we need to support this case: import attr @attr.dataclass(slots=True) class A: x: int def __init__(self, x :int) -> None: self.x = x # ok self.y = 0 # slots error Source: https://github.com/python/mypy/blob/master/mypy/...
Open Graph Description: Similar to #11483 we need to support this case: import attr @attr.dataclass(slots=True) class A: x: int def __init__(self, x :int) -> None: self.x = x # ok self.y = 0 # slots error Source: https://...
X Description: Similar to #11483 we need to support this case: import attr @attr.dataclass(slots=True) class A: x: int def __init__(self, x :int) -> None: self.x = x # ok self.y = 0 # slots error Source: https...
Opengraph URL: https://github.com/python/mypy/issues/11487
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support `slots=True` in `attrs`","articleBody":"Similar to #11483 we need to support this case:\r\n\r\n```python\r\nimport attr\r\n\r\n@attr.dataclass(slots=True)\r\nclass A:\r\n x: int\r\n\r\n def __init__(self, x :int) -> None:\r\n self.x = x # ok\r\n self.y = 0 # slots error\r\n```\r\n\r\nSource: https://github.com/python/mypy/blob/master/mypy/plugins/attrs.py#L272-L277\r\n\r\nI am going to send a PR today.","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2021-11-08T06:56:47Z","url":"https://github.com/python/mypy/issues/11487"}
| 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:2f7c9ebf-ee46-8863-dd45-7b202f4fdadd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B94C:80FB4:246260:337890:6B006A6B |
| html-safe-nonce | c6937160a983a3158316e4d63bd9d587729af467aa52816f3d12ab951d7eae20 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTRDOjgwRkI0OjI0NjI2MDozMzc4OTA6NkIwMDZBNkIiLCJ2aXNpdG9yX2lkIjoiNTY2NzMzNDM5MjU0NTA0NTEwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf253d01922196fc746af903244aecca00006971faf0aaba87c6b1dfd4377881 |
| hovercard-subject-tag | issue:1047082953 |
| 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/11487/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b56b4db3353c076645acdb5c72488ec17c29e326a60a5f14aeafaa340fd44cce/python/mypy/issues/11487 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b56b4db3353c076645acdb5c72488ec17c29e326a60a5f14aeafaa340fd44cce/python/mypy/issues/11487 |
| og:image:alt | Similar to #11483 we need to support this case: import attr @attr.dataclass(slots=True) class A: x: int def __init__(self, x :int) -> None: self.x = x # ok self.y = 0 # slots error Source: https://... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| 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 | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width