Title: Refactor all member access to go through checkmember.py (meta issue) · Issue #7724 · python/mypy · GitHub
Open Graph Title: Refactor all member access to go through checkmember.py (meta issue) · Issue #7724 · python/mypy
X Title: Refactor all member access to go through checkmember.py (meta issue) · Issue #7724 · python/mypy
Description: There are bunch of places where we duplicate some parts of code for special logic in member access (such as properties, class methods, descriptors, __getattr__(), etc): The checkmember.py itself Override checks for variables Override che...
Open Graph Description: There are bunch of places where we duplicate some parts of code for special logic in member access (such as properties, class methods, descriptors, __getattr__(), etc): The checkmember.py itself Ov...
X Description: There are bunch of places where we duplicate some parts of code for special logic in member access (such as properties, class methods, descriptors, __getattr__(), etc): The checkmember.py itself Ov...
Opengraph URL: https://github.com/python/mypy/issues/7724
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Refactor all member access to go through checkmember.py (meta issue)","articleBody":"There are bunch of places where we duplicate some parts of code for special logic in member access (such as properties, class methods, descriptors, `__getattr__()`, etc):\r\n* The `checkmember.py` itself\r\n* Override checks for variables\r\n* Override checks for methods\r\n* Multiple inheritance checks\r\n* Checks for special methods via `check_op()` and `has_member()`\r\n* Protocol implementation check\r\n\r\nHere are some issues that will be solved (or significantly simplified) by refactoring this to go through the same place (probably `checkmember.py`):\r\n* https://github.com/python/mypy/issues/4125\r\n* https://github.com/python/mypy/issues/5425\r\n* https://github.com/python/mypy/issues/5136\r\n* https://github.com/python/mypy/issues/3832\r\n* https://github.com/python/mypy/issues/7565\r\n* https://github.com/python/mypy/issues/7153\r\n* https://github.com/python/mypy/issues/5836\r\n* https://github.com/python/mypy/issues/5803\r\n* https://github.com/python/mypy/issues/5491\r\n* https://github.com/python/mypy/issues/5481\r\n\r\nAlso I think having member access cleaned-up, centralized, and documented will open the way to finally solving https://github.com/python/mypy/issues/708 (currently the oldest high priority issue), and to having general support for descriptor protocol (for historical reasons, several things like properties are supported via some special-casing).","author":{"url":"https://github.com/ilevkivskyi","@type":"Person","name":"ilevkivskyi"},"datePublished":"2019-10-16T14:17:25Z","url":"https://github.com/python/mypy/issues/7724"}
| 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:3d89cc9f-dfbc-daf4-3196-9e6a40422728 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4F2:144E47:2464357:2F5235F:6AFFEF86 |
| html-safe-nonce | 1adb6561faf904d87c261a1f6bb62a23d9b6bda718d305bc76ca5aa9d483794e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEYyOjE0NEU0NzoyNDY0MzU3OjJGNTIzNUY6NkFGRkVGODYiLCJ2aXNpdG9yX2lkIjoiNjQ5NjA3MTg4MTYxMzg5NzYwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ffe4bb7b8507ae0769074ae4b4d09c506333d2a83b5882c995cf167b1498179f |
| hovercard-subject-tag | issue:507882541 |
| 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/7724/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ac0b1b1aa127b3bdb1d0b984e08f36e9d609bc92b223cb75acee169ef3b6e06/python/mypy/issues/7724 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ac0b1b1aa127b3bdb1d0b984e08f36e9d609bc92b223cb75acee169ef3b6e06/python/mypy/issues/7724 |
| og:image:alt | There are bunch of places where we duplicate some parts of code for special logic in member access (such as properties, class methods, descriptors, __getattr__(), etc): The checkmember.py itself Ov... |
| 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 | 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