File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 77from django .http import HttpResponse
88from pydantic .fields import FieldInfo
99from pydantic_core import PydanticUndefined
10- from typing_extensions import Annotated , get_args , get_origin
10+ from typing_extensions import Annotated , Unpack , get_args , get_origin
1111
1212from ninja import UploadedFile
1313from ninja .compatibility .util import UNION_TYPES
@@ -371,7 +371,12 @@ def detect_collection_fields(
371371 return result
372372
373373
374- def _detect_collection_fields (annotation_or_field , attr , path , result ):
374+ def _detect_collection_fields (
375+ annotation_or_field : Any ,
376+ attr : str ,
377+ path : Tuple [str , ...],
378+ result : List [Any ],
379+ ) -> Any :
375380 annotation_or_field = next (
376381 (a for a in annotation_or_field .model_fields .values () if a .alias == attr ),
377382 annotation_or_field .model_fields .get (attr ),
You can’t perform that action at this time.
0 commit comments