chore: cleanup unnecessary mypy suppressions on imports (#24712)

This commit is contained in:
Bowen Liang
2025-08-28 23:17:25 +08:00
committed by GitHub
parent c4496e6cf2
commit 39064197da
24 changed files with 37 additions and 37 deletions

View File

@@ -43,7 +43,7 @@ class GPT2Tokenizer:
except Exception:
from os.path import abspath, dirname, join
from transformers import GPT2Tokenizer as TransformerGPT2Tokenizer # type: ignore
from transformers import GPT2Tokenizer as TransformerGPT2Tokenizer
base_path = abspath(__file__)
gpt2_tokenizer_path = join(dirname(base_path), "gpt2")