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:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -13,9 +13,7 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
"""
|
||||
Processor class for MiniCPMV.
|
||||
"""
|
||||
"""Processor class for MiniCPMV."""
|
||||
|
||||
from typing import TypeAlias
|
||||
|
||||
@@ -36,8 +34,7 @@ MiniCPMVBatchFeature: TypeAlias = BatchFeature
|
||||
|
||||
|
||||
class MiniCPMVProcessor(ProcessorMixin):
|
||||
r"""
|
||||
Constructs a MiniCPMV processor which wraps a MiniCPMV image
|
||||
r"""Constructs a MiniCPMV processor which wraps a MiniCPMV image
|
||||
processor and a MiniCPMV tokenizer into a single processor.
|
||||
|
||||
[`MiniCPMVProcessor`] offers all the functionalities of
|
||||
@@ -50,6 +47,7 @@ class MiniCPMVProcessor(ProcessorMixin):
|
||||
The image processor is a required input.
|
||||
tokenizer ([`LlamaTokenizerWrapper`], *optional*):
|
||||
The tokenizer is a required input.
|
||||
|
||||
"""
|
||||
|
||||
attributes = ["image_processor", "tokenizer"]
|
||||
@@ -93,8 +91,7 @@ class MiniCPMVProcessor(ProcessorMixin):
|
||||
# Copied from transformers.models.clip.processing_clip.CLIPProcessor
|
||||
# .batch_decode with CLIP->Llama
|
||||
def batch_decode(self, *args, **kwargs):
|
||||
"""
|
||||
This method forwards all its arguments to LlamaTokenizerFast's
|
||||
"""This method forwards all its arguments to LlamaTokenizerFast's
|
||||
[`~PythonBackend.batch_decode`]. Please refer to the
|
||||
docstring of this method for more information.
|
||||
"""
|
||||
@@ -126,8 +123,7 @@ class MiniCPMVProcessor(ProcessorMixin):
|
||||
# Copied from transformers.models.clip.processing_clip.CLIPProcessor
|
||||
# .decode with CLIP->Llama
|
||||
def decode(self, *args, **kwargs):
|
||||
"""
|
||||
This method forwards all its arguments to LlamaTokenizerFast's
|
||||
"""This method forwards all its arguments to LlamaTokenizerFast's
|
||||
[`~PythonBackend.decode`]. Please refer to the docstring
|
||||
of this method for more information.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user