-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
Cannot type objects custom manager as ClassVar[ManagerClass] #1909
Labels
bug
Something isn't working
Comments
Removing the type or typing as Any causes mypy to crash with:
|
Interesting... looks like it does type correctly when I remove the explicit type and call it with |
I've tried to but can't reproduce any error or problems with the provided snippet. I'm happy to reopen if you can provide a repro case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
What's wrong
I cannot explicitly type attribute as custom model manager when assigning to the model objects attribute.
This returns:
How is that should be
It should type correctly.
System information
python
version: 3.11django
version: 5.0.1mypy
version: 1.8.0django-stubs
version: latestdjango-stubs-ext
version: latestThe text was updated successfully, but these errors were encountered: