Title: Fine-grained: Failure to propagate change when import changes to another class · Issue #4600 · python/mypy · GitHub
Open Graph Title: Fine-grained: Failure to propagate change when import changes to another class · Issue #4600 · python/mypy
X Title: Fine-grained: Failure to propagate change when import changes to another class · Issue #4600 · python/mypy
Description: This fine-grained incremental mode test case fails (no errors generated): [case testIndirectAnnotationChange] import a from c import A a.f(A()) [file a.py] from b import A def f(x: A) -> None: pass [file b.py] from c import A [file b.py....
Open Graph Description: This fine-grained incremental mode test case fails (no errors generated): [case testIndirectAnnotationChange] import a from c import A a.f(A()) [file a.py] from b import A def f(x: A) -> None: pass...
X Description: This fine-grained incremental mode test case fails (no errors generated): [case testIndirectAnnotationChange] import a from c import A a.f(A()) [file a.py] from b import A def f(x: A) -> None: p...
Opengraph URL: https://github.com/python/mypy/issues/4600
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fine-grained: Failure to propagate change when import changes to another class","articleBody":"This fine-grained incremental mode test case fails (no errors generated):\r\n\r\n```\r\n[case testIndirectAnnotationChange]\r\nimport a\r\nfrom c import A\r\na.f(A())\r\n[file a.py]\r\nfrom b import A\r\ndef f(x: A) -> None: pass\r\n[file b.py]\r\nfrom c import A\r\n[file b.py.2]\r\nfrom d import A\r\n[file c.py]\r\nclass A: pass\r\n[file d.py]\r\nclass A: pass\r\n[out]\r\n==\r\nmain:3: error: Argument 1 to \"f\" has incompatible type \"c.A\"; expected \"d.A\"\r\n```\r\n\r\nMy hypothesis is that this is caused by there being no dependency from `a.A` to `a.f`. #4598 might also needed to fix this (but it's not sufficient).","author":{"url":"https://github.com/JukkaL","@type":"Person","name":"JukkaL"},"datePublished":"2018-02-20T17:02:04Z","url":"https://github.com/python/mypy/issues/4600"}
| 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:e42cca47-13a5-2fed-c007-c90195cb62cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAEC:39ED8:151F78:1D6CAD:6B0055ED |
| html-safe-nonce | a209f04321ad04eee69f6c38abfe8f643f2dc2edad210ab5fd09951046ba7c5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUVDOjM5RUQ4OjE1MUY3ODoxRDZDQUQ6NkIwMDU1RUQiLCJ2aXNpdG9yX2lkIjoiMTExMzIxNDQ2MDczNjA2NzA1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6710e244d624fbeedc8aedb9fadb24c6e53f23e30d9020a74be8b4d41e1b773f |
| hovercard-subject-tag | issue:298672160 |
| 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/4600/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f15dec85627e51d65f19908c9dbc958eb0113432128d9faf6605ff5eb73b70a/python/mypy/issues/4600 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f15dec85627e51d65f19908c9dbc958eb0113432128d9faf6605ff5eb73b70a/python/mypy/issues/4600 |
| og:image:alt | This fine-grained incremental mode test case fails (no errors generated): [case testIndirectAnnotationChange] import a from c import A a.f(A()) [file a.py] from b import A def f(x: A) -> None: pass... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JukkaL |
| hostname | github.com |
| expected-hostname | github.com |
| None | f420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb |
| 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 | 26e00df917aba0f128135dc073ea0c5e33a70d40 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width