Skip to content

Commit

Permalink
chore(internal): update pyright (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Sep 11, 2023
1 parent 9f7fbbc commit 9661f94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tokenizers = ">= 0.13.0"


[tool.poetry.group.dev.dependencies]
pyright = "1.1.318"
pyright = "1.1.326"
mypy = "1.4.1"
black = "23.3.0"
respx = "0.19.2"
Expand Down
2 changes: 1 addition & 1 deletion src/anthropic/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def validate_type(*, type_: type[_T], value: object) -> _T:
if inspect.isclass(type_) and issubclass(type_, pydantic.BaseModel):
return cast(_T, parse_obj(type_, value))

return _validate_non_model_type(type_=type_, value=value)
return cast(_T, _validate_non_model_type(type_=type_, value=value))


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

0 comments on commit 9661f94

Please sign in to comment.