From adc2fd08aaecaaed5dfa32a6c9df87e62af43111 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sat, 28 Sep 2024 08:54:12 -0400 Subject: [PATCH] refactor(api): remove `has_name` (#10246) BREAKING CHANGE: `has_name` has always returned `True` since 9.0. It is safe to remove any calls to `has_name`. --- ibis/expr/types/core.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ibis/expr/types/core.py b/ibis/expr/types/core.py index 27ccbc2e5c08..03ce16e80bb8 100644 --- a/ibis/expr/types/core.py +++ b/ibis/expr/types/core.py @@ -17,7 +17,7 @@ from ibis.config import _default_backend from ibis.config import options as opts from ibis.expr.format import pretty -from ibis.util import deprecated, experimental +from ibis.util import experimental if TYPE_CHECKING: from collections.abc import Iterator, Mapping @@ -169,15 +169,6 @@ def __bool__(self) -> bool: __nonzero__ = __bool__ - @deprecated( - instead="remove any usage of `has_name`, since it is always `True`", - as_of="9.4", - removed_in="10.0", - ) - def has_name(self): - """Check whether this expression has an explicit name.""" - return hasattr(self._arg, "name") - def get_name(self): """Return the name of this expression.""" return self._arg.name