Commit 9179a03e
Changed files (4)
src
openai
src/openai/_utils/_proxy.py
@@ -45,7 +45,7 @@ class LazyProxy(Generic[T], ABC):
@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)
src/openai/cli/_tools/migrate.py
@@ -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)
src/openai/_models.py
@@ -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
requirements-dev.lock
@@ -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
@@ -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
@@ -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