File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
test-data/typecheck/managers Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def copy_method_to_another_class(
125125 method_type .ret_type ,
126126 allow_placeholder = True )
127127
128- if bound_return_type is None and not self .defer_till_next_iteration ():
128+ if bound_return_type is None and self .defer_till_next_iteration ():
129129 raise new_helpers .TypeInfoNotFound (method_node .fullname + ' return type' )
130130
131131 assert bound_return_type is not None
Original file line number Diff line number Diff line change 286286 - path : myapp/models.py
287287 content : |
288288 from django.db import models
289-
290289 class ManagerA(models.Manager):
291290 def do_something(self) -> "ModelB":
292291 return ModelB.objects.create(movie="There's something about mypy")
293-
294-
295292 class ModelA(models.Model):
296293 title = models.TextField()
297-
298294 objects = ManagerA()
299-
300-
301295 class ModelB(models.Model):
302296 movie = models.TextField()
You can’t perform that action at this time.
0 commit comments