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
+4 -11
View File
@@ -18,8 +18,7 @@ class BagelProcessorKwargs(ProcessingKwargs, total=False): # type: ignore[call-
class BagelProcessor(ProcessorMixin):
"""
Constructs a BAGEL processor which wraps a
"""Constructs a BAGEL processor which wraps a
SigLIP image processor and a Qwen2 tokenizer.
"""
@@ -36,9 +35,7 @@ class BagelProcessor(ProcessorMixin):
images: ImageInput = None,
**kwargs: Unpack[BagelProcessorKwargs],
):
"""
Main method to prepare for the model one or several sequences(s) and image(s).
"""
"""Prepare one or more sequences and images for the model."""
output_kwargs = self._merge_kwargs(
BagelProcessorKwargs,
tokenizer_init_kwargs=self.tokenizer.init_kwargs,
@@ -62,15 +59,11 @@ class BagelProcessor(ProcessorMixin):
return BatchFeature(data={**pixel_values, **text_inputs})
def batch_decode(self, *args, **kwargs):
"""
This method forwards all its arguments to Qwen2TokenizerFast's batch_decode.
"""
"""Forward all arguments to `Qwen2TokenizerFast.batch_decode`."""
return self.tokenizer.batch_decode(*args, **kwargs)
def decode(self, *args, **kwargs):
"""
This method forwards all its arguments to Qwen2TokenizerFast's decode.
"""
"""This method forwards all its arguments to Qwen2TokenizerFast's decode."""
return self.tokenizer.decode(*args, **kwargs)
@property