Skip to content

Commit 75e91f6

Browse files
chore(internal): bump pyright (#299)
1 parent 8d42399 commit 75e91f6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

requirements-dev.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pydantic==2.4.2
6363
# via finch-api
6464
pydantic-core==2.10.1
6565
# via pydantic
66-
pyright==1.1.332
66+
pyright==1.1.351
6767
pytest==7.1.1
6868
# via pytest-asyncio
6969
pytest-asyncio==0.21.1

src/finch/_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/finch/_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)

0 commit comments

Comments
 (0)