Skip to content

Commit c6e03c8

Browse files
author
Stainless Bot
committed
chore: remove now unused cached-property dep (#389)
1 parent 2dec899 commit c6e03c8

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
"pandas; python_version >= '3.7'",
1918
"pyarrow==14.0.1",
2019
"pyyaml>=6.0",

src/openlayer/_compat.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ def __set_name__(self, owner: type[Any], name: str) -> None: ...
214214
# __set__ is not defined at runtime, but @cached_property is designed to be settable
215215
def __set__(self, instance: object, value: _T) -> None: ...
216216
else:
217-
try:
218-
from functools import cached_property as cached_property
219-
except ImportError:
220-
from cached_property import cached_property as cached_property
217+
from functools import cached_property as cached_property
221218

222219
typed_cached_property = cached_property

0 commit comments

Comments
 (0)