Skip to content

Commit 77568f7

Browse files
Add a Devicelike alias for backward-compatibility
1 parent 25721d1 commit 77568f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

warp/context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
def __getattr__(name):
2323
from warp._src.utils import get_deprecated_api # noqa: PLC0415
2424

25+
if name == "Devicelike":
26+
return get_deprecated_api(_context, "warp", "DeviceLike", old_attr_path="warp.context.Devicelike")
27+
2528
return get_deprecated_api(_context, "wp", name)
2629

2730

0 commit comments

Comments
 (0)