File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
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 , Unpack , get_args , get_origin
10+ from typing_extensions import Annotated , get_args , get_origin
1111
1212from ninja import UploadedFile
1313from ninja .compatibility .util import UNION_TYPES
@@ -352,9 +352,6 @@ def detect_collection_fields(
352352 for path in (p for p in flatten_map .values () if len (p ) > 1 ):
353353 annotation_or_field : Any = args_d [path [0 ]].annotation
354354 for attr in path [1 :]:
355- if hasattr (annotation_or_field , "annotation" ):
356- annotation_or_field = annotation_or_field .annotation
357-
358355 if get_origin (annotation_or_field ) is Annotated :
359356 annotation_or_field = get_args (annotation_or_field )[0 ]
360357
You can’t perform that action at this time.
0 commit comments