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 7
7
from django .http import HttpResponse
8
8
from pydantic .fields import FieldInfo
9
9
from 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
11
11
12
12
from ninja import UploadedFile
13
13
from ninja .compatibility .util import UNION_TYPES
@@ -352,9 +352,6 @@ def detect_collection_fields(
352
352
for path in (p for p in flatten_map .values () if len (p ) > 1 ):
353
353
annotation_or_field : Any = args_d [path [0 ]].annotation
354
354
for attr in path [1 :]:
355
- if hasattr (annotation_or_field , "annotation" ):
356
- annotation_or_field = annotation_or_field .annotation
357
-
358
355
if get_origin (annotation_or_field ) is Annotated :
359
356
annotation_or_field = get_args (annotation_or_field )[0 ]
360
357
You can’t perform that action at this time.
0 commit comments