Skip to content

Commit 9209bca

Browse files
chore(internal): update pyright (#94)
1 parent 01662d9 commit 9209bca

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ distro = ">= 1.7.0, < 2"
2121

2222

2323
[tool.poetry.group.dev.dependencies]
24-
pyright = "1.1.318"
24+
pyright = "1.1.326"
2525
mypy = "1.4.1"
2626
black = "23.3.0"
2727
respx = "0.19.2"

src/finch/_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def validate_type(*, type_: type[_T], value: object) -> _T:
215215
if inspect.isclass(type_) and issubclass(type_, pydantic.BaseModel):
216216
return cast(_T, parse_obj(type_, value))
217217

218-
return _validate_non_model_type(type_=type_, value=value)
218+
return cast(_T, _validate_non_model_type(type_=type_, value=value))
219219

220220

221221
# our use of subclasssing here causes weirdness for type checkers,

0 commit comments

Comments
 (0)