Limit Pydantic to V1 in dependencies (#24596)

* Limit Pydantic to V1 in dependencies

Pydantic is about to release V2 release which will break a lot of things. This change prevents `transformers` to be used with Pydantic V2 to avoid breaking things.

* more

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Serge Matveenko
2023-07-01 00:04:03 +02:00
committed by GitHub
parent 299aafe55f
commit d51aa48a76
3 changed files with 3 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ _deps = [
"protobuf",
"psutil",
"pyyaml>=5.1",
"pydantic",
"pydantic<2",
"pytest>=7.2.0",
"pytest-timeout",
"pytest-xdist",