Skip to content

Commit

Permalink
Fixed a typo in decimal_encoder's doc. (#3820)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnez committed Mar 1, 2022
1 parent b90e128 commit f3f2408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/json.py
Expand Up @@ -26,7 +26,7 @@ def decimal_encoder(dec_value: Decimal) -> Union[int, float]:
This is useful when we use ConstrainedDecimal to represent Numeric(x,0)
where a integer (but not int typed) is used. Encoding this as a float
results in failed round-tripping between encode and prase.
results in failed round-tripping between encode and parse.
Our Id type is a prime example of this.
>>> decimal_encoder(Decimal("1.0"))
Expand Down

0 comments on commit f3f2408

Please sign in to comment.