forked from DGNum/gestioCOF
Explicative comment about the Type[M] annotation
This commit is contained in:
parent
e45ee3fb40
commit
a259b04d9c
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ class ModelSearch(Generic[M]):
|
|||
>>> user_search.search(["toto", "foo"]) # returns a queryset of Users
|
||||
"""
|
||||
|
||||
# This says that `model` is the class corresponding to the type variable M (or a
|
||||
# subclass).
|
||||
model: Type[M]
|
||||
search_fields: Iterable[str]
|
||||
|
||||
|
|
Loading…
Reference in a new issue