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

Fix incorrect syntax in _deprecation.py warning message for _deprecate_list_output() #1485

Merged
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
2 changes: 1 addition & 1 deletion src/huggingface_hub/utils/_deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def inner_f(*args, **kwargs):
" to be a generator starting from version {version} in order to"
" implement pagination. Please avoid to use"
" `{f.__name__}(...).{attr_name}` or explicitly convert the output"
" to a list first with `list(iter({f.__name__})(...))`.".format(
" to a list first with `[item for item in {f.__name__}(...)]`.".format(
f=f,
version=version,
# Dumb but working workaround to render `attr_name` later
Expand Down