Skip to content

Commit

Permalink
chore(internal): bump pydantic dependency (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 9, 2024
1 parent 4ed0419 commit 99b4d06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 3 additions & 2 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ pyasn1==0.6.1
# via rsa
pyasn1-modules==0.4.1
# via google-auth
pydantic==2.9.2
pydantic==2.10.3
# via anthropic
pydantic-core==2.23.4
pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
# via rich
Expand Down Expand Up @@ -130,6 +130,7 @@ typing-extensions==4.12.2
# via mypy
# via pydantic
# via pydantic-core
# via pyright
urllib3==1.26.20
# via botocore
virtualenv==20.24.5
Expand Down
4 changes: 2 additions & 2 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ pyasn1==0.6.1
# via rsa
pyasn1-modules==0.4.1
# via google-auth
pydantic==2.9.2
pydantic==2.10.3
# via anthropic
pydantic-core==2.23.4
pydantic-core==2.27.1
# via pydantic
python-dateutil==2.9.0.post0
# via botocore
Expand Down
6 changes: 2 additions & 4 deletions src/anthropic/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,8 @@ def get(self, __key: str) -> str | None: ...
StrBytesIntFloat = Union[str, bytes, int, float]

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

PostParser = Callable[[Any], Any]

Expand Down

0 comments on commit 99b4d06

Please sign in to comment.