From 6fd45506cc29f18f4a8d3168fa0a1b453a792d42 Mon Sep 17 00:00:00 2001 From: Deepyaman Datta Date: Thu, 4 Jan 2024 12:24:21 -0700 Subject: [PATCH] fix(datatypes): fix bad references in `to_numpy()` --- ibis/expr/datatypes/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibis/expr/datatypes/core.py b/ibis/expr/datatypes/core.py index f368406172ef..a317dd991cf1 100644 --- a/ibis/expr/datatypes/core.py +++ b/ibis/expr/datatypes/core.py @@ -243,9 +243,9 @@ def from_dask(cls, dask_type, nullable=True) -> Self: def to_numpy(self): """Return the equivalent numpy datatype.""" - from ibis.formats.numpy import NumpyFormat + from ibis.formats.numpy import NumpyType - return NumpyFormat.from_dtype(self) + return NumpyType.from_ibis(self) def to_pandas(self): """Return the equivalent pandas datatype."""