We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Manager.acreate
from django.db import models class Thing(models.Model): id = models.AutoField() def create_thing_sync(name: str) -> None: Thing.objects.create(name="This line shows an error") async def create_thing_async(name: str) -> None: Thing.objects.acreate(name="This one doesn't")
Error only appears for the first example, but it should show for both:
mypy thing.py Unexpected attribute "name" for model "Thing"
I think the problem is in the mypy plugin. I'll take a look when I get the chance.
The text was updated successfully, but these errors were encountered:
acreate
No branches or pull requests
Error only appears for the first example, but it should show for both:
I think the problem is in the mypy plugin. I'll take a look when I get the chance.
The text was updated successfully, but these errors were encountered: