Skip to content

Commit ae5b1a4

Browse files
authored
Improve admin filter lookups() return type (#992)
1 parent 6e84c10 commit ae5b1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/contrib/admin/filters.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SimpleListFilter(ListFilter):
2323
parameter_name: str = ...
2424
lookup_choices: Any = ...
2525
def value(self) -> Optional[str]: ...
26-
def lookups(self, request: HttpRequest, model_admin: ModelAdmin) -> Iterable[Tuple[Any, str]]: ...
26+
def lookups(self, request: HttpRequest, model_admin: ModelAdmin) -> Optional[Iterable[Tuple[Any, str]]]: ...
2727
def choices(self, changelist: Any) -> Iterator[Dict[str, Any]]: ...
2828

2929
class FieldListFilter(ListFilter):

0 commit comments

Comments
 (0)