Title: Error importing plugin "classes.contrib.mypy.classes_plugin" cannot import name 'union_items' from 'mypy.types' · Issue #481 · dry-python/classes · GitHub
Open Graph Title: Error importing plugin "classes.contrib.mypy.classes_plugin" cannot import name 'union_items' from 'mypy.types' · Issue #481 · dry-python/classes
X Title: Error importing plugin "classes.contrib.mypy.classes_plugin" cannot import name 'union_items' from 'mypy.types' · Issue #481 · dry-python/classes
Description: Bug report What's wrong I am hitting the error on a clean installation with python3.11 on MacOS. Python 3.11.1 (main, Dec 12 2022, 14:17:59) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin Type "help", "copyright", "credits" or "license" ...
Open Graph Description: Bug report What's wrong I am hitting the error on a clean installation with python3.11 on MacOS. Python 3.11.1 (main, Dec 12 2022, 14:17:59) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin Type "hel...
X Description: Bug report What's wrong I am hitting the error on a clean installation with python3.11 on MacOS. Python 3.11.1 (main, Dec 12 2022, 14:17:59) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin Type ...
Opengraph URL: https://github.com/dry-python/classes/issues/481
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" Error importing plugin \"classes.contrib.mypy.classes_plugin\" cannot import name 'union_items' from 'mypy.types'","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--\u003e\r\n\r\n## What's wrong\r\n\r\n\u003c!-- Describe what is not working. Please, attach a traceback. --\u003e\r\nI am hitting the error on a clean installation with python3.11 on MacOS.\r\n```python\r\nPython 3.11.1 (main, Dec 12 2022, 14:17:59) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import classes.contrib.mypy.classes_plugin\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/Users/uname/PycharmProjects/sandbox/.venv/lib/python3.11/site-packages/classes/contrib/mypy/classes_plugin.py\", line 33, in \u003cmodule\u003e\r\n from classes.contrib.mypy.features import associated_type, supports, typeclass\r\n File \"/Users/uname/PycharmProjects/sandbox/.venv/lib/python3.11/site-packages/classes/contrib/mypy/features/typeclass.py\", line 17, in \u003cmodule\u003e\r\n from classes.contrib.mypy.typeops import (\r\n File \"/Users/uname/PycharmProjects/sandbox/.venv/lib/python3.11/site-packages/classes/contrib/mypy/typeops/call_signatures.py\", line 9, in \u003cmodule\u003e\r\n from mypy.types import TypeVarType, union_items\r\nImportError: cannot import name 'union_items' from 'mypy.types' (/Users/uname/PycharmProjects/sandbox/.venv/lib/python3.11/site-packages/mypy/types.cpython-311-darwin.so)\r\n```\r\n\r\n## How is that should be\r\n\r\n\u003c!-- Describe how it should work. --\u003e\r\n\r\nNo errors\r\n\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--\u003e\r\n\r\n## System information\r\n\r\n- `python` version:\r\n- `classes` version:\r\n- `mypy` version:\r\n","author":{"url":"https://github.com/zhukovgreen","@type":"Person","name":"zhukovgreen"},"datePublished":"2023-03-14T20:44:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/481/classes/issues/481"}
| 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:c827c156-9ca7-1098-2c1f-edcc3d9082fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EA6:DBE5:887E8B:B62108:69697B4F |
| html-safe-nonce | 6638d1a1e1515d59cfca4f0bab2a3d28c93dd7e1f9c7e028851f24611bcf0ee0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUE2OkRCRTU6ODg3RThCOkI2MjEwODo2OTY5N0I0RiIsInZpc2l0b3JfaWQiOiI4NTkwNzQ2NDA3MDExOTczOTY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 05aad55541dc70348d515b1f766aee7ff150e90276424d7ad2d9115d62cf5a66 |
| hovercard-subject-tag | issue:1624272814 |
| 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/classes/481/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c2cd265f7c195e6da9784686b1a44f91d706c9e97327736df7d2f1321d5a146/dry-python/classes/issues/481 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c2cd265f7c195e6da9784686b1a44f91d706c9e97327736df7d2f1321d5a146/dry-python/classes/issues/481 |
| og:image:alt | Bug report What's wrong I am hitting the error on a clean installation with python3.11 on MacOS. Python 3.11.1 (main, Dec 12 2022, 14:17:59) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin Type "hel... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zhukovgreen |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| turbo-cache-control | no-preview |
| go-import | github.com/dry-python/classes git https://github.com/dry-python/classes.git |
| octolytics-dimension-user_id | 37993755 |
| octolytics-dimension-user_login | dry-python |
| octolytics-dimension-repository_id | 217621930 |
| octolytics-dimension-repository_nwo | dry-python/classes |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 217621930 |
| octolytics-dimension-repository_network_root_nwo | dry-python/classes |
| 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 | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width