Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(api): remove has_name #10246

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions ibis/expr/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down