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

Type checking error with TranslationField #96

Open
browniebroke opened this issue Apr 17, 2023 · 2 comments
Open

Type checking error with TranslationField #96

browniebroke opened this issue Apr 17, 2023 · 2 comments

Comments

@browniebroke
Copy link
Contributor

I'm using mypy and django-stubs to do type checking in my projects and I noticed that as I soon as I add a TranslationField on a model, I get an error from mypy:

error: Could not resolve manager type for "myapp.models.Industry.objects"  [django-manager-missing]

I'm not sure yet if it's a problem with this library, mypy of django-stubs. Does this problem ring a bell? I'll try to put together a minimal project that reproduces the issue.

@browniebroke
Copy link
Contributor Author

I've reproduced the problem in a minimal project. Last mypy check before adding the library worked, and it failed after adding it.

@browniebroke
Copy link
Contributor Author

FYI, it might be a bug in django-stubs: typeddjango/django-stubs#1023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant