Skip to content

Commit

Permalink
Fix ListFilter's expected_parameters return type (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
pheki authored Feb 23, 2023
1 parent 0e7270c commit 0fbd90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/contrib/admin/filters.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ListFilter:
def has_output(self) -> bool: ...
def choices(self, changelist: Any) -> Iterator[dict[str, Any]]: ...
def queryset(self, request: HttpRequest, queryset: QuerySet) -> QuerySet | None: ...
def expected_parameters(self) -> list[str] | None: ...
def expected_parameters(self) -> list[str | None]: ...

class SimpleListFilter(ListFilter):
parameter_name: str | None
Expand Down

0 comments on commit 0fbd90a

Please sign in to comment.