Skip to content

Commit 9202e04

Browse files
chore(internal): bump pyright (#1193)
1 parent dbd20fc commit 9202e04

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

requirements-dev.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ charset-normalizer==3.3.2
3030
# via requests
3131
colorlog==6.7.0
3232
# via nox
33-
cryptography==42.0.3
33+
cryptography==42.0.5
3434
# via azure-identity
3535
# via msal
3636
# via pyjwt
@@ -57,7 +57,7 @@ idna==3.4
5757
importlib-metadata==7.0.0
5858
iniconfig==2.0.0
5959
# via pytest
60-
msal==1.26.0
60+
msal==1.27.0
6161
# via azure-identity
6262
# via msal-extensions
6363
msal-extensions==1.1.0
@@ -96,7 +96,7 @@ pydantic-core==2.10.1
9696
# via pydantic
9797
pyjwt==2.8.0
9898
# via msal
99-
pyright==1.1.332
99+
pyright==1.1.351
100100
pytest==7.1.1
101101
# via pytest-asyncio
102102
pytest-asyncio==0.21.1

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

src/openai/cli/_tools/migrate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def install() -> Path:
138138
unpacked_dir.mkdir(parents=True, exist_ok=True)
139139

140140
with tarfile.open(temp_file, "r:gz") as archive:
141-
archive.extractall(unpacked_dir)
141+
archive.extractall(unpacked_dir, filter="data")
142142

143143
for item in unpacked_dir.iterdir():
144144
item.rename(target_dir / item.name)

0 commit comments

Comments
 (0)