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

Generate stub with the right annotations #221

Open
sweenu opened this issue Jun 25, 2021 · 0 comments
Open

Generate stub with the right annotations #221

sweenu opened this issue Jun 25, 2021 · 0 comments

Comments

@sweenu
Copy link

sweenu commented Jun 25, 2021

Hi,
I have a small problem, my models and the app using them are in different packages. Mypy detects errors in the package with my models, but does not detect errors when those models are used from the app.

So my first guess is that, for some reason, the plugin does not work in a package different from the one where the models are declared. Therefore, I tried to stubgen the package, but the result is that each column has a type Any instead of the types the plugin infers. So I'm guessing the plugin is not used when stubgening.

What is the right way to do this then?

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