Commit 5dfb0088

Harutaka Kawamura <hkawamura0130@gmail.com>
2024-11-25 20:17:54
chore: remove now unused `cached-property` dep (#1867)
1 parent f6199d6
Changed files (2)
src/openai/_compat.py
@@ -226,9 +226,6 @@ if TYPE_CHECKING:
         # __set__ is not defined at runtime, but @cached_property is designed to be settable
         def __set__(self, instance: object, value: _T) -> None: ...
 else:
-    try:
-        from functools import cached_property as cached_property
-    except ImportError:
-        from cached_property import cached_property as cached_property
+    from functools import cached_property as cached_property
 
     typed_cached_property = cached_property
pyproject.toml
@@ -14,7 +14,6 @@ dependencies = [
     "anyio>=3.5.0, <5",
     "distro>=1.7.0, <2",
     "sniffio",
-    "cached-property; python_version < '3.8'",
     "tqdm > 4",
     "jiter>=0.4.0, <1",
 ]