8000 chore(internal): bump pydantic dependency (#775) · anthropics/anthropic-sdk-python@99b4d06 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 99b4d06

Browse files
chore(internal): bump pydantic dependency (#775)
1 parent 4ed0419 commit 99b4d06

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

requirements-dev.lock

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ pyasn1==0.6.1
8585
# via rsa
8686
pyasn1-modules==0.4.1
8787
# via google-auth
88-
pydantic==2.9.2
88+
pydantic==2.10.3
8989
# via anthropic
90-
pydantic-core==2.23.4
90+
pydantic-core==2.27.1
9191
# via pydantic
9292
pygments==2.18.0
9393
# via rich
@@ -130,6 +130,7 @@ typing-extensions==4.12.2
130130
# via mypy
131131
# via pydantic
132132
# via pydantic-core
133+
# via pyright
133134
urllib3==1.26.20
134135
# via botocore
135136
virtualenv==20.24.5

requirements.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ pyasn1==0.6.1
5050
# via rsa
5151
pyasn1-modules==0.4.1
5252
# via google-auth
53-
pydantic==2.9.2
53+
pydantic==2.10.3
5454
# via anthropic
55-
pydantic-core==2.23.4
55+
pydantic-core==2.27.1
5656
# via pydantic
5757
python-dateutil==2.9.0.post0
5858
# via botocore

src/anthropic/_types.py

Lines changed: 2 additions & 4 deletions
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)
0