mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
add objects to model, trade false positive for false negative
This commit is contained in:
@@ -40,7 +40,6 @@ def determine_proper_manager_type(ctx: FunctionContext) -> MypyType:
|
||||
if not outer_model_info.has_base(fullnames.MODEL_CLASS_FULLNAME):
|
||||
return ret
|
||||
|
||||
api = cast(TypeChecker, ctx.api)
|
||||
return helpers.reparametrize_instance(ret, [Instance(outer_model_info, [])])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user