-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Wrong typehinting in Recipe init #124
Comments
I think this is fixed in #115 (which isn't released yet) |
Would be awesome! Any idea when the release is going to happen? |
Hi @GitRon! I'll release a new version today =) |
@berinhard Did you? 😅 |
Yep! I was waiting for PR #126 to be merged. |
Awesome! But my PyCharm is still complaining. I think
should be
What do you think @berinhard ? Best |
@berinhard I create a PR to tackle the issue. |
Thanks @GitRon! I added a comment in the PR |
@berinhard Awesome! I pushed a change on the changelog. Hope the pipeline will succeed 😅 |
@berinhard Any chance that my fix will be pushed to pypi soon? ❤️ |
@GitRon I don't think that I'll do that in the next days, sorry =S If this is a deal breaker for you, I highly recommend you to install the project using the @GitRon you're very welcome to help me with any of these! @anapaulagomes @amureki and @timjklein36 too =) |
Alright, if you have a plan, I can live with that. You are the boss here 😉 |
The typehinting in the init method of
Recipe
is wrong. It states that_model
is supposed to be str - but it can be an instance of django model as well.Expected behavior
Actual behavior
Reproduction Steps
PyCharm will always show an error if I pass a model class to the Recipe. That is quite annoying and misleading.
Versions
Python: 3.8
Django: 3.1.2
Model Bakery: 1.2.0
Thanks!
The text was updated successfully, but these errors were encountered: