Skip to content

Commit a834045

Browse files
chore(internal): bump pydantic dependency (openai#1929)
1 parent af5d7f0 commit a834045

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Diff for: requirements-dev.lock

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# all-features: true
88
# with-sources: false
99
# generate-hashes: false
10-
# universal: false
1110

1211
-e file:.
1312
annotated-types==0.6.0
@@ -117,9 +116,9 @@ portalocker==2.10.1
117116
# via msal-extensions
118117
pycparser==2.22
119118
# via cffi
120-
pydantic==2.9.2
119+
pydantic==2.10.3
121120
# via openai
122-
pydantic-core==2.23.4
121+
pydantic-core==2.27.1
123122
# via pydantic
124123
pygments==2.18.0
125124
# via rich

Diff for: requirements.lock

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# all-features: true
88
# with-sources: false
99
# generate-hashes: false
10-
# universal: false
1110

1211
-e file:.
1312
annotated-types==0.6.0
@@ -41,9 +40,9 @@ pandas==2.2.3
4140
# via openai
4241
pandas-stubs==2.2.2.240807
4342
# via openai
44-
pydantic==2.9.2
43+
pydantic==2.10.3
4544
# via openai
46-
pydantic-core==2.23.4
45+
pydantic-core==2.27.1
4746
# via pydantic
4847
python-dateutil==2.9.0.post0
4948
# via pandas

Diff for: src/openai/_types.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,8 @@ def get(self, __key: str) -> str | None: ...
194194
StrBytesIntFloat = Union[str, bytes, int, float]
195195

196196
# Note: copied from Pydantic
197-
# https://github.com/pydantic/pydantic/blob/32ea570bf96e84234d2992e1ddf40ab8a565925a/pydantic/main.py#L49
198-
IncEx: TypeAlias = Union[
199-
Set[int], Set[str], Mapping[int, Union["IncEx", Literal[True]]], Mapping[str, Union["IncEx", Literal[True]]]
200-
]
197+
# https://github.com/pydantic/pydantic/blob/6f31f8f68ef011f84357330186f603ff295312fd/pydantic/main.py#L79
198+
IncEx: TypeAlias = Union[Set[int], Set[str], Mapping[int, Union["IncEx", bool]], Mapping[str, Union["IncEx", bool]]]
201199

202200
PostParser = Callable[[Any], Any]
203201

0 commit comments

Comments
 (0)