Skip to content

Commit

Permalink
Change signature.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil authored Nov 17, 2024
1 parent 7b9b7ba commit d245b94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions esmerald/transformers/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d245b94

Please sign in to comment.