mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 07:47:09 +08:00
Model.__init__ supporting same typing as assigment (#835)
* `Model.__init__` supporting same typing as assigment * Update mypy_django_plugin/django/context.py
This commit is contained in:
@@ -29,7 +29,7 @@ def typecheck_queryset_filter(ctx: MethodContext, django_context: DjangoContext)
|
||||
if lookup_kwarg is None:
|
||||
continue
|
||||
if isinstance(provided_type, Instance) and provided_type.type.has_base(
|
||||
"django.db.models.expressions.Combinable"
|
||||
fullnames.COMBINABLE_EXPRESSION_FULLNAME
|
||||
):
|
||||
provided_type = resolve_combinable_type(provided_type, django_context)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user