Skip to content

Commit 99cffd4

Browse files
committed
fix deprecation error attribute
1 parent 9274f58 commit 99cffd4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

cf/data/mixin/deprecations.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ def in_memory(self):
111111
"""True if the array is retained in memory.
112112
113113
Deprecated at version TODODASK.
114-
**Examples**
115-
116-
>>> d.in_memory
117114
118115
"""
119116
_DEPRECATION_ERROR_ATTRIBUTE(

cf/functions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3204,11 +3204,10 @@ def _DEPRECATION_ERROR_METHOD(
32043204
def _DEPRECATION_ERROR_ATTRIBUTE(
32053205
instance, attribute, message="", version="3.0.0", removed_at="4.0.0"
32063206
):
3207-
warnings.warn(
3207+
raise DeprecationError(
32083208
f"{instance.__class__.__name__} attribute {attribute!r} has been "
32093209
f"deprecated at version {version} and will be removed at version "
3210-
f"{removed_at}. {message}",
3211-
DeprecationWarning,
3210+
f"{removed_at}. {message}"
32123211
)
32133212

32143213

0 commit comments

Comments
 (0)