Skip to content

Commit 9062a77

Browse files
committed
fix CI error
1 parent ae7da67 commit 9062a77

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ninja/signature/details.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from django.http import HttpResponse
88
from pydantic.fields import FieldInfo
99
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
1111

1212
from ninja import UploadedFile
1313
from 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

0 commit comments

Comments
 (0)