-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
create_new_manager_class_from_as_manager_method : TypeVar QuerySet does not seems to work. #1646
Labels
bug
Something isn't working
Comments
MoranAbadieGatewatcher
changed the title
as_manager, TypeVar QuerySet does not semms to work.
create_new_manager_class_from_as_manager_method : TypeVar QuerySet does not seems to work.
Aug 9, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 30, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 31, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 31, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 31, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 31, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 31, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 31, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 31, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Aug 31, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 2, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 2, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 3, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 3, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 3, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 3, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 4, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 4, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 4, 2023
moranabadie
added a commit
to moranabadie/django-stubs
that referenced
this issue
Sep 4, 2023
flaeppe
pushed a commit
that referenced
this issue
Sep 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
I have the following code (this is a simplified version of my problem):
I have the mypy report :
(1)
error: Incompatible types in assignment (expression has type "_CTE", variable has type "MyModel") [assignment]
(2)
error: Incompatible types in assignment (expression has type "MyModel", variable has type "int") [assignment]
(3)
error: <nothing> has no attribute "example"
The (2) is right, but the (1) is wrong.
Moreover Self types seems not to work (with (3))
What's wrong
It seems that when ManagerFromMyModelQuerySet is created, it does not work with a TypeVar, nor Self type.
System information
The text was updated successfully, but these errors were encountered: