Skip to content

Commit 5dfb008

Browse files
harupystainless-app[bot]
authored andcommitted
chore: remove now unused cached-property dep (#1867)
1 parent f6199d6 commit 5dfb008

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dependencies = [
1414
"anyio>=3.5.0, <5",
1515
"distro>=1.7.0, <2",
1616
"sniffio",
17-
"cached-property; python_version < '3.8'",
1817
"tqdm > 4",
1918
"jiter>=0.4.0, <1",
2019
]

src/openai/_compat.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,6 @@ def __set_name__(self, owner: type[Any], name: str) -> None: ...
226226
# __set__ is not defined at runtime, but @cached_property is designed to be settable
227227
def __set__(self, instance: object, value: _T) -> None: ...
228228
else:
229-
try:
230-
from functools import cached_property as cached_property
231-
except ImportError:
232-
from cached_property import cached_property as cached_property
229+
from functools import cached_property as cached_property
233230

234231
typed_cached_property = cached_property

0 commit comments

Comments
 (0)