Skip to content

Commit

Permalink
chore(internal): bump pyright (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 26, 2024
1 parent dbd20fc commit 9202e04
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ charset-normalizer==3.3.2
# via requests
colorlog==6.7.0
# via nox
cryptography==42.0.3
cryptography==42.0.5
# via azure-identity
# via msal
# via pyjwt
Expand All @@ -57,7 +57,7 @@ idna==3.4
importlib-metadata==7.0.0
iniconfig==2.0.0
# via pytest
msal==1.26.0
msal==1.27.0
# via azure-identity
# via msal-extensions
msal-extensions==1.1.0
Expand Down Expand Up @@ -96,7 +96,7 @@ pydantic-core==2.10.1
# via pydantic
pyjwt==2.8.0
# via msal
pyright==1.1.332
pyright==1.1.351
pytest==7.1.1
# via pytest-asyncio
pytest-asyncio==0.21.1
Expand Down
2 changes: 1 addition & 1 deletion src/openai/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def construct_type(*, value: object, type_: type) -> object:

if is_union(origin):
try:
return validate_type(type_=type_, value=value)
return validate_type(type_=cast("type[object]", type_), value=value)
except Exception:
pass

Expand Down
2 changes: 1 addition & 1 deletion src/openai/_utils/_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __dir__(self) -> Iterable[str]:

@property # type: ignore
@override
def __class__(self) -> type:
def __class__(self) -> type: # pyright: ignore
proxied = self.__get_proxied__()
if issubclass(type(proxied), LazyProxy):
return type(proxied)
Expand Down
2 changes: 1 addition & 1 deletion src/openai/cli/_tools/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def install() -> Path:
unpacked_dir.mkdir(parents=True, exist_ok=True)

with tarfile.open(temp_file, "r:gz") as archive:
archive.extractall(unpacked_dir)
archive.extractall(unpacked_dir, filter="data")

for item in unpacked_dir.iterdir():
item.rename(target_dir / item.name)
Expand Down

0 comments on commit 9202e04

Please sign in to comment.