Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 23, 2024
1 parent 31130d5 commit 0742e3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/marshmallow/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,9 @@ def __init__(
precision = precision.lower()

if precision not in self._unit_to_microseconds_mapping:
units = ", ".join(f'"{each}"' for each in self._unit_to_microseconds_mapping)
units = ", ".join(
f'"{each}"' for each in self._unit_to_microseconds_mapping
)
msg = f"The precision must be one of {units}."
raise ValueError(msg)

Expand Down

0 comments on commit 0742e3f

Please sign in to comment.