diff --git a/pyproject.toml b/pyproject.toml index 2ce2c58b..dcb612d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ dependencies = [ "anyio>=3.5.0, <5", "distro>=1.7.0, <2", "sniffio", - "cached-property; python_version < '3.8'", "jiter>=0.4.0, <1", ] requires-python = ">= 3.8" diff --git a/src/anthropic/_compat.py b/src/anthropic/_compat.py index df173f85..92d9ee61 100644 --- a/src/anthropic/_compat.py +++ b/src/anthropic/_compat.py @@ -214,9 +214,6 @@ def __set_name__(self, owner: type[Any], name: str) -> None: ... # __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