Title: Class decorators are not type checked · Issue #3135 · python/mypy · GitHub
Open Graph Title: Class decorators are not type checked · Issue #3135 · python/mypy
X Title: Class decorators are not type checked · Issue #3135 · python/mypy
Description: decorator: int = 3 @decorator # no error class A: pass class B: pass NewB = decorator(B) # E: "int" not callable Mypy doesn't appear to do any checking of class decorators. Applying the decorator manually works.
Open Graph Description: decorator: int = 3 @decorator # no error class A: pass class B: pass NewB = decorator(B) # E: "int" not callable Mypy doesn't appear to do any checking of class decorators. Applying the decorator m...
X Description: decorator: int = 3 @decorator # no error class A: pass class B: pass NewB = decorator(B) # E: "int" not callable Mypy doesn't appear to do any checking of class decorators. Applying t...
Opengraph URL: https://github.com/python/mypy/issues/3135
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Class decorators are not type checked","articleBody":"```python\r\ndecorator: int = 3\r\n\r\n@decorator # no error\r\nclass A:\r\n pass\r\n\r\nclass B:\r\n pass\r\nNewB = decorator(B) # E: \"int\" not callable\r\n```\r\nMypy doesn't appear to do any checking of class decorators. Applying the decorator manually works.","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2017-04-05T06:45:03Z","url":"https://github.com/python/mypy/issues/3135"}
| 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:5a101fb1-f26c-46ef-63b8-df4756f4e1dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9BE:14B08B:13024AF:18ED0EA:6B0005C6 |
| html-safe-nonce | 11b9f4d7f2e5ef2a6577df83f48454e4d1ea47aab684b5ad607419b44aa9adad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUJFOjE0QjA4QjoxMzAyNEFGOjE4RUQwRUE6NkIwMDA1QzYiLCJ2aXNpdG9yX2lkIjoiMTM1NzU4MzY2ODc4ODMzMTk3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4fcb94403f3c8355bc7b97e0099b65195081c8c8ff46c9d8d40a9b603101948f |
| hovercard-subject-tag | issue:219483969 |
| 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/3135/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67e251260901e21081f61a105627e881a915b8618a616d58f6a98691b875f19d/python/mypy/issues/3135 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67e251260901e21081f61a105627e881a915b8618a616d58f6a98691b875f19d/python/mypy/issues/3135 |
| og:image:alt | decorator: int = 3 @decorator # no error class A: pass class B: pass NewB = decorator(B) # E: "int" not callable Mypy doesn't appear to do any checking of class decorators. Applying the decorator m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JelleZijlstra |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width