Improve admin filter lookups() return type (#992)

This commit is contained in:
Adam Johnson
2022-06-13 16:45:55 +01:00
committed by GitHub
parent 6e84c103af
commit ae5b1a4edf

View File

@@ -23,7 +23,7 @@ class SimpleListFilter(ListFilter):
parameter_name: str = ...
lookup_choices: Any = ...
def value(self) -> Optional[str]: ...
def lookups(self, request: HttpRequest, model_admin: ModelAdmin) -> Iterable[Tuple[Any, str]]: ...
def lookups(self, request: HttpRequest, model_admin: ModelAdmin) -> Optional[Iterable[Tuple[Any, str]]]: ...
def choices(self, changelist: Any) -> Iterator[Dict[str, Any]]: ...
class FieldListFilter(ListFilter):