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 16, 2024
1 parent b489e1d commit 61889b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/iris/common/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def _round(date):
elif date.microsecond < 500000:
return date - timedelta(microseconds=date.microsecond)
else:
return date + timedelta(seconds=1) - timedelta(microseconds=date.microsecond)
return (
date + timedelta(seconds=1) - timedelta(microseconds=date.microsecond)
)

dates = _num2date_original(
self, time_value, only_use_cftime_datetimes, only_use_python_datetimes
Expand Down

0 comments on commit 61889b3

Please sign in to comment.