From 071db6bffaedc5f8969ba05bdca22beb20ceee72 Mon Sep 17 00:00:00 2001 From: Vitaliy Kucheryaviy Date: Mon, 12 Aug 2024 15:07:48 +0300 Subject: [PATCH] typing --- ninja/operation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ninja/operation.py b/ninja/operation.py index 4d6bb649..a63fb8ee 100644 --- a/ninja/operation.py +++ b/ninja/operation.py @@ -261,7 +261,7 @@ def _result_to_response( resp_object, context={"request": request, "response_status": status} ) - model_dump_kwargs = {} + model_dump_kwargs: Dict[str, Any] = {} if pydantic_version >= [2, 7]: # pydantic added support for serialization context at 2.7 model_dump_kwargs.update(