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

Error messages refer to private _QuerySet class #681

Closed
syastrov opened this issue Jul 29, 2021 · 1 comment · Fixed by #2104
Closed

Error messages refer to private _QuerySet class #681

syastrov opened this issue Jul 29, 2021 · 1 comment · Fixed by #2104
Assignees
Labels
bug Something isn't working

Comments

@syastrov
Copy link
Contributor

syastrov commented Jul 29, 2021

Bug report

Error messages on master now refer to the private _QuerySet class.
It's not friendly to users, and doesn't hint about how to properly write the annotations.

We should make the "repr" use either the QuerySet alias (if the 2 type parameters are both the same model) or the django_stubs_ext.ValuesQuerySet alias.

See python/mypy#6501 for a possible hacky way to do this in the plugin.

@intgr
Copy link
Collaborator

intgr commented May 29, 2024

This has been solved as a side-effect of

@intgr intgr closed this as completed May 29, 2024
@intgr intgr self-assigned this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

2 participants