File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
stubs/django-filter/django_filters Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ from collections.abc import Callable, Iterable
22from typing import Any
33
44from django import forms
5- from django .db .models import Q , QuerySet
5+ from django .db .models import QuerySet
66from django .forms import Field
77from django_stubs_ext import StrOrPromise
88
@@ -131,7 +131,7 @@ class MultipleChoiceFilter(Filter):
131131 ) -> None : ...
132132 def is_noop (self , qs : QuerySet [Any ], value : Any ) -> bool : ... # Value can be any filter input
133133 def filter (self , qs : QuerySet [Any ], value : Any ) -> QuerySet [Any ]: ...
134- def get_filter_predicate (self , v : Any ) -> Q : ... # Predicate value can be any filter input type
134+ def get_filter_predicate (self , v : Any ) -> dict [ str , Any ] : ... # Predicate value can be any filter input type
135135
136136class TypedMultipleChoiceFilter (MultipleChoiceFilter ):
137137 field_class : type [forms .TypedMultipleChoiceField ] # More specific than parent MultipleChoiceField
You can’t perform that action at this time.
0 commit comments