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
@@ -90,7 +90,7 @@ class VoxtralRealtimeMultiModalProcessor(VoxtralMultiModalProcessor):
class TimeEmbedding(torch.nn.Module):
"""Sinusoidal Embedding for encoding time"""
"""Sinusoidal Embedding for encoding time."""
def __init__(self, dim: int, theta: float = 10000.0) -> None:
super().__init__()
@@ -391,7 +391,7 @@ class VoxtralRealtimeGeneration(VoxtralForConditionalGeneration, SupportsRealtim
def embed_multimodal(
self, **kwargs
) -> list[torch.Tensor] | torch.Tensor | tuple[torch.Tensor, ...] | None:
"""Transform audio waveforms -> initial whisper post-conv embeddings"""
"""Transform audio waveforms -> initial whisper post-conv embeddings."""
audio_inputs = self._parse_and_validate_audio_arrays(**kwargs)
if audio_inputs is None: