From 68082f02b380dd2f3f9e3a5a6a597d8e8aa43014 Mon Sep 17 00:00:00 2001 From: Ruth Comer Date: Thu, 6 Jan 2022 17:15:50 +0000 Subject: [PATCH] bounds can be None --- lib/iris/coords.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iris/coords.py b/lib/iris/coords.py index c4673aa257..6a3d830ea0 100644 --- a/lib/iris/coords.py +++ b/lib/iris/coords.py @@ -1590,7 +1590,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, @@ -1726,7 +1726,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():