Skip to content

Commit

Permalink
DEPRECATED: add warning to deprecate nameof in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed Oct 9, 2024
1 parent ef2179c commit cedb74c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions varname/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@ def nameof(
VarnameRetrievingError: When the callee's node cannot be retrieved or
trying to retrieve the full name of non attribute series calls.
"""
warnings.warn(
"`nameof` is deprecated and will be removed in the future. "
"Please use `argname` instead.",
DeprecationWarning,
)
# Frame is anyway used in get_node
frameobj = IgnoreList.create(
ignore_lambda=False,
Expand Down

0 comments on commit cedb74c

Please sign in to comment.