Skip to content

Commit d24cb56

Browse files
MarkDaoustcopybara-github
authored andcommitted
Fix: Correct pydantic version range (bytes fields are broken with pydantic<=2.8).
The ser_json_bytes, val_json_bytes we rely on isn't introduced till 2.9. In old versions B64 encoded bytes fields are getting ascii decoded. - Users will see different formats of bytes depending on pydantic version. - The api fails when you send back badly coded bytes (inline_blob, thought_signature). It's possible to fix it to mostly work with older versions, but definitely not trivial to get **identical** behavior. PiperOrigin-RevId: 825591037
1 parent 3ca4cf6 commit d24cb56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies = [
2929
"anyio>=4.8.0, <5.0.0",
3030
"google-auth>=2.14.1, <3.0.0",
3131
"httpx>=0.28.1, <1.0.0",
32-
"pydantic>=2.0.0, <3.0.0",
32+
"pydantic>=2.9.0, <3.0.0",
3333
"requests>=2.28.1, <3.0.0",
3434
"tenacity>=8.2.3, <9.2.0",
3535
"websockets>=13.0.0, <15.1.0",

0 commit comments

Comments
 (0)