Title: mypy fails to recognise assignment as a form of module aliasing · Issue #1778 · python/mypy · GitHub
Open Graph Title: mypy fails to recognise assignment as a form of module aliasing · Issue #1778 · python/mypy
X Title: mypy fails to recognise assignment as a form of module aliasing · Issue #1778 · python/mypy
Description: Example: # a.pyi class Foo: ... # b.py import a a2 = a x = a2.Foo # error: module has no attribute Foo
Open Graph Description: Example: # a.pyi class Foo: ... # b.py import a a2 = a x = a2.Foo # error: module has no attribute Foo
X Description: Example: # a.pyi class Foo: ... # b.py import a a2 = a x = a2.Foo # error: module has no attribute Foo
Opengraph URL: https://github.com/python/mypy/issues/1778
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy fails to recognise assignment as a form of module aliasing","articleBody":"Example:\n\n``` python\n# a.pyi\nclass Foo:\n ...\n```\n\n``` python\n# b.py\nimport a\n\na2 = a\n\nx = a2.Foo # error: module has no attribute Foo\n```\n","author":{"url":"https://github.com/Diggsey","@type":"Person","name":"Diggsey"},"datePublished":"2016-06-30T16:37:56Z","url":"https://github.com/python/mypy/issues/1778"}
| 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:5070450c-6b14-2946-af05-c25c8cf3fc21 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB9C:15DE5D:139E225:19E2FFC:6B00156D |
| html-safe-nonce | c92f848cadf5be1779db793b1356320e399be0c63c47f27a52b7ee8104f502a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjlDOjE1REU1RDoxMzlFMjI1OjE5RTJGRkM6NkIwMDE1NkQiLCJ2aXNpdG9yX2lkIjoiNDIwMjEwMDA3NjEwNzAxMTQzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 077cf096b61e19c015094b99b32985b5a5efedfbf66ec16cb0b9a546148aecc2 |
| hovercard-subject-tag | issue:163210023 |
| 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/1778/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fa7aae77ab27eea43ba4bbca4b6977dd224529dfe34caaedf5bd116d40da8edc/python/mypy/issues/1778 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fa7aae77ab27eea43ba4bbca4b6977dd224529dfe34caaedf5bd116d40da8edc/python/mypy/issues/1778 |
| og:image:alt | Example: # a.pyi class Foo: ... # b.py import a a2 = a x = a2.Foo # error: module has no attribute Foo |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Diggsey |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| 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 | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width