Add pydocstyle to the ruff rules (#52136)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <hej.mellor@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
+2 -6
View File
@@ -1135,9 +1135,7 @@ class OpenPanguVLForConditionalGeneration(
return loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
def get_mm_mapping(self) -> MultiModelKeys:
"""
Get the module prefix in multimodal models
"""
"""Get the module prefix in multimodal models."""
return MultiModelKeys.from_string_field(
language_model="language_model",
connector="visual.merger.",
@@ -1306,9 +1304,7 @@ def rescale_and_normalize(
image_std: float | list[float],
dtype: torch.dtype = torch.bfloat16,
) -> "torch.Tensor":
"""
Rescale and normalize images.
"""
"""Rescale and normalize images."""
image_mean, image_std, do_rescale = _fuse_mean_std_and_rescale_factor(
do_normalize=do_normalize,
image_mean=image_mean,