Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using my with typic.mypy plugin get error cannot import name 'TypingType' from 'mypy.typeops' #208

Open
ErnestoLoma opened this issue Aug 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ErnestoLoma
Copy link

  • typical version: 2.8.1
  • Python version: 3.9.12
  • Operating System: macOS 13.4.1

Description

When using mypy with typic.mypy configured in mypy.ini I get the following error:
mypy.ini:2: error: Error importing plugin "typic.mypy": cannot import name 'TypingType' from 'mypy.typeops' (/Users/ernesthill/PycharmProjects/Typical/venv/lib/python3.9/site-packages/mypy/typeops.cpython-39-darwin.so) [misc]
Found 1 error in 1 file (errors prevented further checking)

What I Did

ran mypy for my project. The version of mypy is 1.5.1

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
mypy pyatlan
mypy.ini:2: error: Error importing plugin "typic.mypy": cannot import name 'TypingType' from 'mypy.typeops' (/Users/ernesthill/PycharmProjects/Typical/venv/lib/python3.9/site-packages/mypy/typeops.cpython-39-darwin.so) [misc]
Found 1 error in 1 file (errors prevented further checking)

@kyle-kc
Copy link

kyle-kc commented Aug 31, 2023

Same problem here. I can't find the TypingType class in mypy.typeops so I'm guessing it was removed from mypy at some point.

@seandstewart
Copy link
Owner

Yes, the plugin does not work with newer versions of mypy - however if you don't use the @typic.klass decorator, there is largely no need for the plugin.

@seandstewart seandstewart added the bug Something isn't working label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants