File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 55from pathlib import Path
66from typing import Literal
77
8- # suppress docopt syntax warnings (triggered in Python 3.14+)
9- warnings .filterwarnings ("ignore" , category = SyntaxWarning , module = "docopt" )
10- # suppress torchaudio backend dispatch warning (triggered by skops)
11- warnings .filterwarnings ("ignore" , category = UserWarning , message = "Torchaudio's I/O functions now support.*" )
12-
13- warnings .simplefilter ("default" , DeprecationWarning ) # show by default
14- warnings .simplefilter ("ignore" , category = FutureWarning ) # for tranformers
15-
168# avoid the "None of PyTorch, TensorFlow, etc. have been found" warning.
179with contextlib .redirect_stderr (open (os .devnull , "w" )):
1810 import transformers # noqa
2921
3022__version__ = "2.1.7"
3123
24+ # suppress docopt syntax warnings (triggered in Python 3.14+)
25+ warnings .filterwarnings ("ignore" , category = SyntaxWarning , module = "docopt" )
26+ # suppress torchaudio backend dispatch warning (triggered by skops)
27+ warnings .filterwarnings ("ignore" , category = UserWarning , message = "Torchaudio's I/O functions now support.*" )
28+
29+ warnings .simplefilter ("default" , DeprecationWarning ) # show by default
30+ warnings .simplefilter ("ignore" , category = FutureWarning ) # for tranformers
31+
3232class WtP :
3333 def __init__ (
3434 self ,
You can’t perform that action at this time.
0 commit comments