Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lvdongyi committed Nov 4, 2024
1 parent 0eba022 commit 851af38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/transformers/auto/test_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def test_new_tokenizer_fast_registration(self):
AutoTokenizer.register(CustomConfig, slow_tokenizer_class=CustomTokenizerFast)
with self.assertRaises(ValueError):
AutoTokenizer.register(
CustomConfig, slow_tokenizer_class=CustomTokenizer, fast_tokenizer_class=CustomTokenizerFastWithoutSlow
CustomConfig,
slow_tokenizer_class=CustomTokenizer,
fast_tokenizer_class=CustomTokenizerFastWithoutSlow,
)
AutoConfig.register("custom", CustomConfig)

Expand Down

0 comments on commit 851af38

Please sign in to comment.