Skip to content

Commit ee0161c

Browse files
chore(internal): bump pyright (anthropics#350)
1 parent ab82b2d commit ee0161c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

requirements-dev.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ botocore==1.31.58
2424
# via anthropic
2525
# via boto3
2626
# via s3transfer
27-
botocore-stubs==1.34.45
27+
botocore-stubs==1.34.49
2828
# via boto3-stubs
2929
cachetools==5.3.2
3030
# via google-auth
@@ -94,7 +94,7 @@ pydantic==2.4.2
9494
# via anthropic
9595
pydantic-core==2.10.1
9696
# via pydantic
97-
pyright==1.1.332
97+
pyright==1.1.351
9898
pytest==7.1.1
9999
# via pytest-asyncio
100100
pytest-asyncio==0.21.1
@@ -129,7 +129,7 @@ tomli==2.0.1
129129
# via pytest
130130
tqdm==4.66.2
131131
# via huggingface-hub
132-
types-awscrt==0.20.3
132+
types-awscrt==0.20.4
133133
# via botocore-stubs
134134
types-s3transfer==0.10.0
135135
# via boto3-stubs

src/anthropic/_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def construct_type(*, value: object, type_: type) -> object:
283283

284284
if is_union(origin):
285285
try:
286-
return validate_type(type_=type_, value=value)
286+
return validate_type(type_=cast("type[object]", type_), value=value)
287287
except Exception:
288288
pass
289289

src/anthropic/_utils/_proxy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __dir__(self) -> Iterable[str]:
4545

4646
@property # type: ignore
4747
@override
48-
def __class__(self) -> type:
48+
def __class__(self) -> type: # pyright: ignore
4949
proxied = self.__get_proxied__()
5050
if issubclass(type(proxied), LazyProxy):
5151
return type(proxied)

src/anthropic/lib/bedrock/_auth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ def get_auth_headers(
3939

4040
prepped = request.prepare()
4141

42-
return dict(prepped.headers)
42+
return {key: value for key, value in dict(prepped.headers).items() if value is not None}

0 commit comments

Comments
 (0)