mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 00:43:45 +08:00
[django-filter] Broaden OrderingFilter fields parameter type (#14856)
This commit is contained in:
1 parent
73b34018a6
commit
21f3e4c08e
1 file changed
+1
-1
@@ -303,7 +303,7 @@ class OrderingFilter(BaseCSVFilter, ChoiceFilter):
|
||||
field_name: str | None = None,
|
||||
lookup_expr: str | None = None,
|
||||
*,
|
||||
fields: dict[str, str] | Iterable[tuple[str, str]] = ...,
|
||||
fields: dict[str, str] | Iterable[str] | Iterable[tuple[str, str]] = ...,
|
||||
field_labels: dict[str, StrOrPromise] = ...,
|
||||
# Inherited from ChoiceFilter
|
||||
null_value: Any = ..., # Null value can be any type (None, empty string, etc.)
|
||||
|
||||
Reference in new issue
Block a user