Skip to content

Commit aa41408

Browse files
committed
Add TypeVar
1 parent 646d369 commit aa41408

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ class MyAPIView(...):
2626
You can customize the search behavior by overriding the `_search` method.
2727

2828
```python
29+
from typing import TypeVar
30+
2931
from drf_haystack_search_filter.filters import HaystackSearchFilter
3032

33+
T = TypeVar("T")
34+
35+
3136
class MyHaystackSearchFilter(HaystackSearchFilter):
3237
def _search(self, request: Request, queryset: QuerySet[T], view: APIView, query: str) -> QuerySet[T]:
3338
# Customize the search behavior here

0 commit comments

Comments
 (0)