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 authored and samuelcolvin committed May 14, 2022
1 parent 28587b9 commit efa7300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/json.py
Expand Up @@ -33,7 +33,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 efa7300

Please sign in to comment.