Skip to content

docs: fix recursively_apply docstring to document test_type instead of nonexistent main_type#4079

Open
Kropiunig wants to merge 1 commit into
huggingface:mainfrom
Kropiunig:docs-recursively-apply-test-type-docstring
Open

docs: fix recursively_apply docstring to document test_type instead of nonexistent main_type#4079
Kropiunig wants to merge 1 commit into
huggingface:mainfrom
Kropiunig:docs-recursively-apply-test-type-docstring

Conversation

@Kropiunig

Copy link
Copy Markdown

The recursively_apply docstring in src/accelerate/utils/operations.py documents an argument named main_type, but the function signature has no such parameter; the actual parameter is test_type (test_type=is_torch_tensor). The ghost name also appears in the data description, the error_on_other_type description, and the Returns section. This renames every main_type reference to test_type so the rendered API reference matches the real signature. Docstring-only change with no behavior impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant