-
-
Notifications
You must be signed in to change notification settings - Fork 485
Assertion errors when working with existing codebase #62
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
I had the same problem with the plugin on internal codebase, wasn't able to fix it.
Probably should be reported there, but I couldn't make a simple reproduce and decided to postpone for better times. |
Problem lies in a file where I refer to class MyModel(models.Model):
user = models.ForeignKey("general.CensoredUser") From quickly looking through cache it seems that Now need to figure out why the entry is missing from |
Maybe it's possible to solve with the new |
I've committed some related code in mkurnikov@aeb435c. Could you check out |
I'm having one more problem. Background: I'm adding typing to 2y+ codebase, written in django. I started with those mypy settings:
I'm running mypy with a set of files and modules which are considered to be properly typed, not all files. The problem is that I often run into this problem:
This seems to be happening because of mypy cache. Running
rm -rf .mypy_cache
always fixes this, but just for the next run.It usually happens for user model or other "popular" model in the app.
it works fine when I remove mypy django plugin.
The text was updated successfully, but these errors were encountered: