Skip to content

Commit adc2fd0

Browse files
authored
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`.
1 parent 76940ce commit adc2fd0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

ibis/expr/types/core.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ibis.config import _default_backend
1818
from ibis.config import options as opts
1919
from ibis.expr.format import pretty
20-
from ibis.util import deprecated, experimental
20+
from ibis.util import experimental
2121

2222
if TYPE_CHECKING:
2323
from collections.abc import Iterator, Mapping
@@ -169,15 +169,6 @@ def __bool__(self) -> bool:
169169

170170
__nonzero__ = __bool__
171171

172-
@deprecated(
173-
instead="remove any usage of `has_name`, since it is always `True`",
174-
as_of="9.4",
175-
removed_in="10.0",
176-
)
177-
def has_name(self):
178-
"""Check whether this expression has an explicit name."""
179-
return hasattr(self._arg, "name")
180-
181172
def get_name(self):
182173
"""Return the name of this expression."""
183174
return self._arg.name

0 commit comments

Comments
 (0)