Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
pesap committed Nov 20, 2024
1 parent ff5e703 commit 9e99ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infrasys/pint_quantities.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def serialize(
"""
# If we pass the to_json flag, we serialize it as json, but sometimes the pydantic info can have the to_json
# enabled. In that case so we add a check of that as well
info_to_json = True if info is not None and info.mode_is_json() else False
info_to_json = info is not None and info.mode_is_json()
to_json = to_json or info_to_json

if self.ser_mode == "dict" or (info is not None and info.mode == "dict"):
Expand Down

0 comments on commit 9e99ddb

Please sign in to comment.