-
Notifications
You must be signed in to change notification settings - Fork 99
Latest version seems to break mypy #63
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
Comments
You need to update Python to a newer version (I think at least 3.5.2, but better just the latest 3.5 version). |
I have this same error on Python 3.7.2:
In my
|
You can't have the same error on Python 3.7.2 because that line of code simply doesn't exist in Python 3.7.2, can you post exactly the traceback you see? |
I'm sorry, I don't know how I missed the traceback portion of the OP's error. I seem to be unable to generate a traceback?
|
Do you have |
I do... however, I discovered that, for whatever reason, my shell was using my global mypy. Forcing a re-hash fixed things. Sorry for the confusion! |
I fixed this issue by adding - repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.910'
hooks:
- id: mypy
additional_dependencies:
- 'pydantic'
- 'sqlalchemy-stubs' |
when running mypy on my project, I get this error:
Error importing plugin sqlmypy
When debugging a little bit, the problem seems to be here:
The text was updated successfully, but these errors were encountered: