Skip to content

Commit

Permalink
Fix: OrderingFilter.get_default_ordering() may return None (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertocerrone authored Mar 21, 2023
1 parent 0752c40 commit 1467ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest_framework-stubs/filters.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class OrderingFilter(BaseFilterBackend):
ordering_title: str
ordering_description: str
template: str
def get_ordering(self, request: Request, queryset: QuerySet, view: APIView) -> Sequence[str]: ...
def get_default_ordering(self, view: APIView) -> Sequence[str]: ...
def get_ordering(self, request: Request, queryset: QuerySet, view: APIView) -> Sequence[str] | None: ...
def get_default_ordering(self, view: APIView) -> Sequence[str] | None: ...
def get_default_valid_fields(
self, queryset: QuerySet, view, context: Mapping[str, Any] = ...
) -> list[tuple[str, str]]: ...
Expand Down

0 comments on commit 1467ae6

Please sign in to comment.