From 668251d43398b1a12296686e3f36691e76cdfe08 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 18fdda3244..f016b3143a 100644 --- a/lib/iris/coords.py +++ b/lib/iris/coords.py @@ -1698,7 +1698,7 @@ def points(self, points): self._values = points @property - def bounds(self) -> RealData: + def bounds(self) -> Optional[RealData]: """ The coordinate bounds values, as a NumPy array, or None if no bound values are defined. @@ -1824,7 +1824,7 @@ def core_points(self) -> RealOrLazyData: """ return super()._core_values() - def core_bounds(self) -> RealOrLazyData: + def core_bounds(self) -> Optional[RealOrLazyData]: """ The points array at the core of this coord, which may be a NumPy array or a dask array.