[CI] Ignore ruff D209, rejoin the docstrings it split, and silence incompatible-rule warnings (#57212)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1085b64425
commit
651a88c09a
@@ -51,8 +51,7 @@ def _check_consistency(target: TokenizerLike, expected: TokenizerLike):
|
||||
def test_thread_pool_tokenizer_pickle(model_id: str):
|
||||
"""Regression test for issue #45433: the thread-pool tokenizer wrapper
|
||||
reconstructs through maybe_make_thread_pool on unpickling, which used to
|
||||
fall off the end and return None.
|
||||
"""
|
||||
fall off the end and return None."""
|
||||
reference_tokenizer = AutoTokenizer.from_pretrained(model_id)
|
||||
|
||||
pooled_tokenizer = maybe_make_thread_pool(deepcopy(reference_tokenizer))
|
||||
|
||||
Reference in New Issue
Block a user