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 Oct 3, 2024
1 parent ab3072b commit adbb97b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/iris/mesh/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -2802,8 +2802,7 @@ def axis(self):

@contextmanager
def _writable_points_and_bounds(self):
"""
Context manager to allow bounds and points to be set during __init__.
"""Context manager to allow bounds and points to be set during __init__.
`points` currently doesn't encounter any issues without this manager, but
is included here for future proofing.
"""
Expand All @@ -2825,7 +2824,7 @@ def points(self):
@points.setter
def points(self, value):
if self._read_only_points_and_bounds:
if len(value) != 0 or not(value is None):
if len(value) != 0 or not (value is None):
msg = "Cannot set 'points' on a MeshCoord."
raise ValueError(msg)

Expand All @@ -2840,7 +2839,7 @@ def bounds(self):
@bounds.setter
def bounds(self, value):
if self._read_only_points_and_bounds:
if len(value) != 0: #or not(value is None) and self.bounds:
if len(value) != 0: # or not(value is None) and self.bounds:
msg = "Cannot set 'bounds' on a MeshCoord."
raise ValueError(msg)
else:
Expand Down

0 comments on commit adbb97b

Please sign in to comment.