Skip to content

Commit

Permalink
Add notion in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
qubvel committed Jun 6, 2024
1 parent 4c57d9b commit 6a0180e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transformers/utils/deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def deprecate_kwarg(
- Automatically replace deprecated keyword arguments with new ones.
- Raise an error if deprecated arguments are used, depending on the specified conditions.
By default, the decorator notifies the user about the deprecated argument while the `transformers.__version__` < specified `version`
in the decorator. To keep notifications with any version `warn_if_greater_or_equal_version=True` can be set.
Parameters:
old_name (`str`):
Name of the deprecated keyword argument.
Expand Down

0 comments on commit 6a0180e

Please sign in to comment.