Skip to content

Commit

Permalink
bounds can be None
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed Aug 30, 2024
1 parent 3e4cb4d commit d6e7f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/iris/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ def points(self, points):
self._values = points

@property
def bounds(self) -> RealData:
def bounds(self) -> Optional[RealData]:
"""Coordinate bounds values.
The coordinate bounds values, as a NumPy array,
Expand Down Expand Up @@ -1727,7 +1727,7 @@ def core_points(self) -> RealOrLazyData:
"""Core points array at the core of this coord, which may be a NumPy array or a dask array."""
return super()._core_values()

def core_bounds(self) -> RealOrLazyData:
def core_bounds(self) -> Optional[RealOrLazyData]:
"""Core bounds. The points array at the core of this coord, which may be a NumPy array or a dask array."""
result = None
if self.has_bounds():
Expand Down

0 comments on commit d6e7f1b

Please sign in to comment.