Title: Crash with mypy plugin on mypy 0.961 · Issue #1433 · dry-python/returns · GitHub
Open Graph Title: Crash with mypy plugin on mypy 0.961 · Issue #1433 · dry-python/returns
X Title: Crash with mypy plugin on mypy 0.961 · Issue #1433 · dry-python/returns
Description: Bug report What's wrong Traceback (most recent call last): File "mypy/checkexpr.py", line 3991, in accept File "mypy/nodes.py", line 1760, in accept File "mypy/checkexpr.py", line 305, in visit_call_expr File "mypy/checkexpr.py", line 38...
Open Graph Description: Bug report What's wrong Traceback (most recent call last): File "mypy/checkexpr.py", line 3991, in accept File "mypy/nodes.py", line 1760, in accept File "mypy/checkexpr.py", line 305, in visit_cal...
X Description: Bug report What's wrong Traceback (most recent call last): File "mypy/checkexpr.py", line 3991, in accept File "mypy/nodes.py", line 1760, in accept File "mypy/checkexp...
Opengraph URL: https://github.com/dry-python/returns/issues/1433
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash with mypy plugin on mypy 0.961","articleBody":"# Bug report\r\n\r\n\u003c!--\r\nHi, thanks for submitting a bug. We appreciate that.\r\n\r\nBut, we will need some information about what's wrong to help you.\r\n-->\r\n\r\n## What's wrong\r\n\r\n\u003c!-- Describe what is not working. Please, attach a traceback. -->\r\n```\r\nTraceback (most recent call last):\r\n File \"mypy/checkexpr.py\", line 3991, in accept\r\n File \"mypy/nodes.py\", line 1760, in accept\r\n File \"mypy/checkexpr.py\", line 305, in visit_call_expr\r\n File \"mypy/checkexpr.py\", line 383, in visit_call_expr_inner\r\n File \"mypy/checkexpr.py\", line 892, in check_call_expr_with_callee_type\r\n File \"mypy/checkexpr.py\", line 957, in check_call\r\n File \"mypy/checkexpr.py\", line 1085, in check_callable_call\r\n File \"mypy/checkexpr.py\", line 763, in apply_function_plugin\r\n File \".pyenv/versions/3.9.7/envs/venv/lib/python3.9/site-packages/returns/contrib/mypy/_features/partial.py\", line 62, in analyze\r\n return _PartialFunctionReducer(\r\n File \".pyenv/versions/3.9.7/envs/venv/lib/python3.9/site-packages/returns/contrib/mypy/_features/partial.py\", line 131, in new_partial\r\n fallback, intermediate = self._create_intermediate(case_function)\r\n File \".pyenv/versions/3.9.7/envs/venv/lib/python3.9/site-packages/returns/contrib/mypy/_features/partial.py\", line 150, in _create_intermediate\r\n return intermediate, analyze_call(\r\n File \".pyenv/versions/3.9.7/envs/venv/lib/python3.9/site-packages/returns/contrib/mypy/_typeops/analtype.py\", line 55, in analyze_call\r\n messages = checker.msg if show_errors else checker.msg.clean_copy()\r\nAttributeError: 'MessageBuilder' object has no attribute 'clean_copy'\r\n```\r\n\r\n\r\n## How is that should be\r\n\r\n\u003c!-- Describe how it should work. -->\r\nDon't use `MessageBuilder.clean_copy` (removed in https://github.com/python/mypy/pull/12631)\r\n\u003c!--\r\n\r\n Love dry-python? ❤️\r\n Do you want your bugs to be solved faster?\r\n\r\n Please consider supporting us:\r\n 👉 https://github.com/sponsors/dry-python\r\n\r\n-->\r\n\r\n## System information\r\n\r\n- `python` version: 3.9\r\n- `returns` version: 0.19\r\n- `mypy` version: 0.961\r\n\r\n- `hypothesis` version (if any):\r\n- `pytest` version (if any):\r\n","author":{"url":"https://github.com/emosenkis","@type":"Person","name":"emosenkis"},"datePublished":"2022-06-29T14:19:14Z","url":"https://github.com/dry-python/returns/issues/1433"}
| 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:99f4defa-96fa-0efd-e86d-f98fe64cfc2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B156:1A1C04:243C328:317D02D:6B00344F |
| html-safe-nonce | 9f133988f5e9fb363b1d921adb358a4f092ed3df2729afe2997f8225c21826d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU2OjFBMUMwNDoyNDNDMzI4OjMxN0QwMkQ6NkIwMDM0NEYiLCJ2aXNpdG9yX2lkIjoiNTk3ODkzNzA0NDQxODcwNDQ2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dbc3416d6976344cae3cd29763558e772afbbe9892845a005e608c8b4bf63c42 |
| hovercard-subject-tag | issue:1288803511 |
| 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/dry-python/returns/1433/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4035d969f3f582a8f1ae3207a3e1169ebcb1fb24206b8b51f83997815aa345c5/dry-python/returns/issues/1433 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4035d969f3f582a8f1ae3207a3e1169ebcb1fb24206b8b51f83997815aa345c5/dry-python/returns/issues/1433 |
| og:image:alt | Bug report What's wrong Traceback (most recent call last): File "mypy/checkexpr.py", line 3991, in accept File "mypy/nodes.py", line 1760, in accept File "mypy/checkexpr.py", line 305, in visit_cal... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | emosenkis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/dry-python/returns git https://github.com/dry-python/returns.git |
| octolytics-dimension-user_id | 37993755 |
| octolytics-dimension-user_login | dry-python |
| octolytics-dimension-repository_id | 167689891 |
| octolytics-dimension-repository_nwo | dry-python/returns |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 167689891 |
| octolytics-dimension-repository_network_root_nwo | dry-python/returns |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width