Title: Class attribute that duplicates a base class attribute is not flagged · Issue #1338 · python/mypy · GitHub
Open Graph Title: Class attribute that duplicates a base class attribute is not flagged · Issue #1338 · python/mypy
X Title: Class attribute that duplicates a base class attribute is not flagged · Issue #1338 · python/mypy
Description: The following is not an error currently: class C: a = None # type: int class D(C): a = None # type: int # No error (Even though repeating the definition in C does cause an error.) Worse, there's not even a check that the types match: cla...
Open Graph Description: The following is not an error currently: class C: a = None # type: int class D(C): a = None # type: int # No error (Even though repeating the definition in C does cause an error.) Worse, there's no...
X Description: The following is not an error currently: class C: a = None # type: int class D(C): a = None # type: int # No error (Even though repeating the definition in C does cause an error.) Worse, there'...
Opengraph URL: https://github.com/python/mypy/issues/1338
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Class attribute that duplicates a base class attribute is not flagged","articleBody":"The following is not an error currently:\n\n```\nclass C:\n a = None # type: int\nclass D(C):\n a = None # type: int # No error\n```\n\n(Even though repeating the definition in C does cause an error.)\nWorse, there's not even a check that the types match:\n\n```\nclass C:\n a = None # type: int\nclass D(C):\n a = None # type: str # Still no error\n```\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2016-04-06T15:20:39Z","url":"https://github.com/python/mypy/issues/1338"}
| 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:f50557f2-cd8c-2f3e-f8cd-ab4771272221 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 978C:2EEABC:1451E7:1C7A45:6B005E69 |
| html-safe-nonce | b3c4076b3a8f268a10fba04825e45278bce89d3ddcdbcf8ed1ec0ef1a9b7ecd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzhDOjJFRUFCQzoxNDUxRTc6MUM3QTQ1OjZCMDA1RTY5IiwidmlzaXRvcl9pZCI6IjQyMzI3MDQ4NjYzMDIwNTgwODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf2846fba196085123dd3c5c5ff8232b5a51d7b4723789143b55ead5a5d170ed |
| hovercard-subject-tag | issue:146347364 |
| 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/1338/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2029b1057abe1f72471c1cfeb68717778b77180b1d0a123d0f1b05886cf54ea/python/mypy/issues/1338 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2029b1057abe1f72471c1cfeb68717778b77180b1d0a123d0f1b05886cf54ea/python/mypy/issues/1338 |
| og:image:alt | The following is not an error currently: class C: a = None # type: int class D(C): a = None # type: int # No error (Even though repeating the definition in C does cause an error.) Worse, there's no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gvanrossum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width