Skip to content

Commit ae7da67

Browse files
committed
fix mypy check
1 parent 1bdaa65 commit ae7da67

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ninja/signature/details.py

Lines changed: 7 additions & 2 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, get_args, get_origin
10+
from typing_extensions import Annotated, Unpack, get_args, get_origin
1111

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

0 commit comments

Comments
 (0)