Repository navigation
[docs] Fix docstring parameters that functions don't take - #15466
Open
ishtiaq-ahmed-dev wants to merge 1 commit into
Open
ishtiaq-ahmed-dev wants to merge 1 commit into
ishtiaq-ahmed-dev wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #15363 (opened after @stevhliu's go-ahead in the issue).
Fixes the 13 docstrings listed in the issue that document parameter names their functions don't have. Docstrings only, no code changes.
Renamed to the real parameter:
AmusedLoraLoaderMixin.save_lora_weights:unet_lora_layers→transformer_lora_layerscheck_peft_version:version→min_version_dict_to_component_spec:specdict→spec_dictAltDiffusionPipeline/AltDiffusionImg2ImgPipeline.get_guidance_scale_embedding:timesteps→w(description and return shape now refer tow)BaseGuidance._prepare_batch:input_fields(not a parameter) replaced by entries for the realdataandidentifierarguments, based on what the method does with themRemoved (no such parameter):
QuantizationConfigMixin.to_json_file:use_diffHunyuanImageRefinerPipeline.encode_prompt:prompt_embeds_2,prompt_embeds_mask_2I2VGenXLPipeline.encode_prompt:do_classifier_free_guidanceVersatileDiffusionPipeline.dual_guided:negative_promptBoundingBoxVolume.intersect:params_apply_taylorseer_cache_hook:namedownload_from_original_stable_diffusion_ckpt:is_img2img, and thereturn:line that sat underArgs:is now aReturns:sectionChecks: none of the edited functions has a
# Copied frommarker, and no other function is copied from them.ruff checkandruff format --checkpass on the changed files, and re-running the signature check reports none of the 13 entries.Note: #15425 by @M-Colley also targets this issue and was opened before the go-ahead. The two are nearly identical; the main difference is
_prepare_batch, where this PR documents thatdatavalues can be tensors (used as-is) or tuples (indexed withtuple_index). Please go with whichever you prefer.Before submitting
Who can review?
@stevhliu