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
@@ -186,9 +186,7 @@ class DeepseekVLV2Processor(ProcessorMixin):
inference_mode: bool = True,
**kwargs: Any,
):
"""
Args:
"""Args:
prompt (str): the formatted prompt;
images (list[ImageType]): the list of images;
inference_mode (bool): if True, then remove the last eos token;
@@ -201,8 +199,8 @@ class DeepseekVLV2Processor(ProcessorMixin):
- pixel_values (torch.FloatTensor): [n_patches, 3, H, W]
- image_id (int): the id of the image token
- num_image_tokens (list[int]): the number of image tokens
"""
"""
if prompt is None or images is None:
raise ValueError("prompt and images must be used at the same time.")
@@ -276,9 +274,7 @@ class DeepseekVLV2Processor(ProcessorMixin):
inference_mode: bool = True,
**kwargs: Any,
):
"""
Args:
"""Args:
text (str): the formatted prompt;
images (list[ImageType]): the list of images;
inference_mode (bool): if True, then remove the last eos token;
@@ -290,8 +286,8 @@ class DeepseekVLV2Processor(ProcessorMixin):
- images (torch.FloatTensor): [n_images, 3, H, W]
- image_id (int): the id of the image token
- num_image_tokens (list[int]): the number of image tokens
"""
"""
prepare = self.process_one(
prompt=text,
images=images,