Skip to content

Error importing plugin "classes.contrib.mypy.classes_plugin" cannot import name 'union_items' from 'mypy.types'#481

@zhukovgreen

Description

@zhukovgreen

Bug report

What's wrong

I am hitting the error on a clean installation with python3.11 on MacOS.

Python3.11.1 (main, Dec122022, 14:17:59) [Clang14.0.0 (clang-1400.0.29.202)] ondarwinType"help", "copyright", "credits"or"license"formoreinformation. >>>importclasses.contrib.mypy.classes_pluginTraceback (mostrecentcalllast): File"<stdin>", line1, in<module>File"/Users/uname/PycharmProjects/sandbox/.venv/lib/python3.11/site-packages/classes/contrib/mypy/classes_plugin.py", line33, in<module>fromclasses.contrib.mypy.featuresimportassociated_type, supports, typeclassFile"/Users/uname/PycharmProjects/sandbox/.venv/lib/python3.11/site-packages/classes/contrib/mypy/features/typeclass.py", line17, in<module>fromclasses.contrib.mypy.typeopsimport ( File"/Users/uname/PycharmProjects/sandbox/.venv/lib/python3.11/site-packages/classes/contrib/mypy/typeops/call_signatures.py", line9, in<module>frommypy.typesimportTypeVarType, union_itemsImportError: cannotimportname'union_items'from'mypy.types' (/Users/uname/PycharmProjects/sandbox/.venv/lib/python3.11/site-packages/mypy/types.cpython-311-darwin.so)

How is that should be

No errors

System information

  • python version:
  • classes version:
  • mypy version:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions