Skip to content

Commit

Permalink
Python: ignore deprecations warnings
Browse files Browse the repository at this point in the history
ERROR tests/fsm/test_regex.py - RuntimeError: Failed to import transformers.models.auto.tokenization_auto because of the following error (look up to see its traceback):
Failed to import transformers.generation.utils because of the following error (look up to see its traceback):
numpy.core is deprecated and has been renamed to numpy._core. The numpy._core namespace contains private NumPy internals and its use is discouraged, as NumPy internals can change without warning in any release. In practice, most real-world usage of numpy.core is to access functionality in the public NumPy API. If that is the case, use the public NumPy API. If not, you are using NumPy internals. If you would still like to access an internal attribute, use numpy._core.multiarray.
  • Loading branch information
torymur committed Nov 12, 2024
1 parent c7af981 commit fb833ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ filterwarnings = [
"error",
"ignore::pydantic.warnings.PydanticDeprecatedSince20",
"ignore::UserWarning",
"ignore::DeprecationWarning",
]
addopts = [
"--import-mode=importlib"
Expand Down

0 comments on commit fb833ae

Please sign in to comment.