From 87a033d9fa913ead3fb3c5aa8f903527ca910173 Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Wed, 22 Dec 2021 12:28:45 -0500 Subject: [PATCH] Properly indent return block (#14887) --- src/transformers/models/luke/tokenization_luke.py | 2 +- src/transformers/models/mluke/tokenization_mluke.py | 2 +- src/transformers/tokenization_utils_base.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transformers/models/luke/tokenization_luke.py b/src/transformers/models/luke/tokenization_luke.py index c072f25767..4f86546707 100644 --- a/src/transformers/models/luke/tokenization_luke.py +++ b/src/transformers/models/luke/tokenization_luke.py @@ -102,7 +102,7 @@ ENCODE_PLUS_ADDITIONAL_KWARGS_DOCSTRING = r""" Whether or not to print more information and warnings. **kwargs: passed to the `self.tokenize()` method - Return: + Return: [`BatchEncoding`]: A [`BatchEncoding`] with the following fields: - **input_ids** -- List of token ids to be fed to a model. diff --git a/src/transformers/models/mluke/tokenization_mluke.py b/src/transformers/models/mluke/tokenization_mluke.py index 96d5326938..5123e0ef02 100644 --- a/src/transformers/models/mluke/tokenization_mluke.py +++ b/src/transformers/models/mluke/tokenization_mluke.py @@ -100,7 +100,7 @@ ENCODE_PLUS_ADDITIONAL_KWARGS_DOCSTRING = r""" Whether or not to print more information and warnings. **kwargs: passed to the `self.tokenize()` method - Return: + Return: [`BatchEncoding`]: A [`BatchEncoding`] with the following fields: - **input_ids** -- List of token ids to be fed to a model. diff --git a/src/transformers/tokenization_utils_base.py b/src/transformers/tokenization_utils_base.py index e1dfabdae6..a006efdae4 100644 --- a/src/transformers/tokenization_utils_base.py +++ b/src/transformers/tokenization_utils_base.py @@ -1343,7 +1343,7 @@ ENCODE_PLUS_ADDITIONAL_KWARGS_DOCSTRING = r""" Whether or not to print more information and warnings. **kwargs: passed to the `self.tokenize()` method - Return: + Return: [`BatchEncoding`]: A [`BatchEncoding`] with the following fields: - **input_ids** -- List of token ids to be fed to a model.