Title: Member is not assignable error when accessing a module member · Issue #5439 · python/mypy · GitHub
Open Graph Title: Member is not assignable error when accessing a module member · Issue #5439 · python/mypy
X Title: Member is not assignable error when accessing a module member · Issue #5439 · python/mypy
Description: Hi, This issue seems close to the one that was fixed in this PR. Are you reporting a bug, or opening a feature request? I'm reporting a bug. Please insert below the code you are checking with mypy, or a mock-up repro if the source is pri...
Open Graph Description: Hi, This issue seems close to the one that was fixed in this PR. Are you reporting a bug, or opening a feature request? I'm reporting a bug. Please insert below the code you are checking with mypy,...
X Description: Hi, This issue seems close to the one that was fixed in this PR. Are you reporting a bug, or opening a feature request? I'm reporting a bug. Please insert below the code you are checking with m...
Opengraph URL: https://github.com/python/mypy/issues/5439
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Member is not assignable error when accessing a module member","articleBody":"Hi,\r\n\r\nThis issue seems close to the one that was fixed in [this PR](https://github.com/python/mypy/pull/3636).\r\n\r\n* Are you reporting a bug, or opening a feature request?\r\n\r\nI'm reporting a bug.\r\n\r\n* Please insert below the code you are checking with mypy,\r\n or a mock-up repro if the source is private. We would appreciate\r\n if you try to simplify your case to a minimal repro.\r\n\r\n```python\r\nimport functools\r\n\r\nclass Foo:\r\n bar = functools\r\n\r\nfoo = Foo()\r\nfoo.bar # error: Member \"bar\" is not assignable\r\n```\r\n\r\n* What is the actual behavior/output?\r\n\r\n```\r\ntest.py:7: error: Member \"bar\" is not assignable\r\n```\r\n\r\n* What is the behavior/output you expect?\r\n\r\nNo Error. I'm just accessing, not mutating.\r\n\r\n* What are the versions of mypy and Python you are using?\r\n Do you see the same issue after installing mypy from Git master?\r\n\r\n```\r\n$ mypy --version\r\nmypy 0.620\r\n```\r\n\r\nSame error on master.\r\n\r\n* What are the mypy flags you are using? (For example --strict-optional)\r\n\r\nNo flags. Just raw `mypy test.py`\r\n\r\nIf you need any further information, please let me know.\r\nThank you in advance.","author":{"url":"https://github.com/gilbsgilbs","@type":"Person","name":"gilbsgilbs"},"datePublished":"2018-08-09T15:17:46Z","url":"https://github.com/python/mypy/issues/5439"}
| 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:94207cdc-d30b-1701-5a05-374242bb154b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D81E:251AC0:CA52C5:10CA7BB:6B004E77 |
| html-safe-nonce | 1b3e0ac3bb78d257ba10009de6a27886e24daaa938553c547c4160990c3f3c53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODFFOjI1MUFDMDpDQTUyQzU6MTBDQTdCQjo2QjAwNEU3NyIsInZpc2l0b3JfaWQiOiIzOTA0NjUyNzA4NzI4MDMyODg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ed7ed256dcdd945954b82557c2fc65b574608c90fa09dee582e47992ee220b5d |
| hovercard-subject-tag | issue:349174198 |
| 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/5439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f436177981a37dab261351c4015626b5f714d753e946174e66c458c2fa41619/python/mypy/issues/5439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f436177981a37dab261351c4015626b5f714d753e946174e66c458c2fa41619/python/mypy/issues/5439 |
| og:image:alt | Hi, This issue seems close to the one that was fixed in this PR. Are you reporting a bug, or opening a feature request? I'm reporting a bug. Please insert below the code you are checking with mypy,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gilbsgilbs |
| 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