Title: MyPy is nondeterministic across runs · Issue #16979 · python/mypy · GitHub
Open Graph Title: MyPy is nondeterministic across runs · Issue #16979 · python/mypy
X Title: MyPy is nondeterministic across runs · Issue #16979 · python/mypy
Description: Bug Report I'm observing nondeterminism in MyPy runs on one of my programs. Sometimes, it accepts a file, sometimes it doesn't. Once it has accepted a file it seems to cache this solution, and I need to wipe .mypy_cache to be able to rep...
Open Graph Description: Bug Report I'm observing nondeterminism in MyPy runs on one of my programs. Sometimes, it accepts a file, sometimes it doesn't. Once it has accepted a file it seems to cache this solution, and I ne...
X Description: Bug Report I'm observing nondeterminism in MyPy runs on one of my programs. Sometimes, it accepts a file, sometimes it doesn't. Once it has accepted a file it seems to cache this solution, ...
Opengraph URL: https://github.com/python/mypy/issues/16979
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MyPy is nondeterministic across runs","articleBody":"**Bug Report**\r\nI'm observing nondeterminism in MyPy runs on one of my programs. Sometimes, it accepts a file, sometimes it doesn't. Once it has accepted a file it seems to cache this solution, and I need to wipe `.mypy_cache` to be able to reproduce the random behavior again.\r\n\r\n**To Reproduce**\r\n\r\nDownload and extract the following archive ([repro.tar.gz](https://github.com/python/mypy/files/14467193/repro.tar.gz)), which contains stubs from a library I am developing along with a `test.py` file to be checked.\r\n\r\nThis is output from an actual run on my end:\r\n```\r\n$ mypy test.py\r\ntest.py:74: error: Incompatible types in assignment (expression has type \"object\", variable has type \"Array3f\") [assignment]\r\nFound 1 error in 1 file (checked 1 source file)\r\n\r\n$ mypy test.py\r\nSuccess: no issues found in 1 source file\r\n```\r\n\r\n\r\n**Details on setup**: mypy 1.8.0 (compiled: yes), Python 3.12.2, on an Apple M1 laptop (macOS 16.6.2). The machine is and has been perfectly stable. That is to say: I don't expect cosmic rays or RAM corruption to be responsible ;).","author":{"url":"https://github.com/wjakob","@type":"Person","name":"wjakob"},"datePublished":"2024-03-02T00:38:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/16979/mypy/issues/16979"}
| 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:5d024889-7bad-0531-7043-c3be604bd144 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4AC:1FED0F:2190C09:2C150D3:6A5CA6FB |
| html-safe-nonce | ec1a6136961f01c5205ab8cfb7ae7bda15b2d80a082dd5697b9767ecb0ffe100 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEFDOjFGRUQwRjoyMTkwQzA5OjJDMTUwRDM6NkE1Q0E2RkIiLCJ2aXNpdG9yX2lkIjoiMjk2MTY4MTUxMDYyMDI0MzcwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 23c8b64264e7a7e1e4c81f5defddf105d32ec83edce06abb265ac7524a6c427a |
| hovercard-subject-tag | issue:2164419712 |
| 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/16979/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75822a949e37d64b2c21390161d3c917329354827b814534cb98287aa3c9e335/python/mypy/issues/16979 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75822a949e37d64b2c21390161d3c917329354827b814534cb98287aa3c9e335/python/mypy/issues/16979 |
| og:image:alt | Bug Report I'm observing nondeterminism in MyPy runs on one of my programs. Sometimes, it accepts a file, sometimes it doesn't. Once it has accepted a file it seems to cache this solution, and I ne... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wjakob |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width