Skip to content

Commit

Permalink
[3.15] Add filters.search_smart_split (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHyuckSa authored Apr 16, 2024
1 parent e1b4a94 commit 6d69ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rest_framework-stubs/filters.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ from rest_framework.views import APIView

_MT = TypeVar("_MT", bound=Model)

def search_smart_split(search_terms: list[str]) -> list[str]: ...

class BaseFilterBackend:
def filter_queryset(self, request: Request, queryset: QuerySet[_MT], view: APIView) -> QuerySet[_MT]: ...
def get_schema_fields(self, view: APIView) -> list[Any]: ...
Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,5 @@ rest_framework.views.AsView
rest_framework.views.GenericView

# Added in 3.15:
rest_framework.filters.search_smart_split
rest_framework.serializers.ModelSerializer.get_unique_together_constraints
rest_framework.utils.field_mapping.get_unique_validators

0 comments on commit 6d69ba7

Please sign in to comment.