From d245b9418d1da2fd9f8d843dd5a402c6edb9ceae Mon Sep 17 00:00:00 2001 From: Tiago Silva Date: Sun, 17 Nov 2024 20:46:20 +0100 Subject: [PATCH] Change signature.py --- esmerald/transformers/signature.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/esmerald/transformers/signature.py b/esmerald/transformers/signature.py index 6cd18122..865ab02d 100644 --- a/esmerald/transformers/signature.py +++ b/esmerald/transformers/signature.py @@ -178,9 +178,7 @@ def encode_value(encoder: "Encoder", annotation: Any, value: Any) -> Any: encoder_info: Dict[str, "Encoder"] = cls.encoders[key] # type: ignore encoder: "Encoder" = encoder_info["encoder"] annotation = encoder_info["annotation"] - kwargs[key] = ( - encode_value(encoder, annotation, value) if value is not None else value - ) + kwargs[key] = encode_value(encoder, annotation, value) return kwargs