chore: cleanup unnecessary mypy suppressions on imports (#24712)
This commit is contained in:
parent
c4496e6cf2
commit
39064197da
24 changed files with 37 additions and 37 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue