Skip to content

Commit 689ec9a

Browse files
committed
Merge branch 'ccrouzet/devicelike-alias' into 'main'
Add a `Devicelike` Alias for Backward-Compatibility See merge request omniverse/warp!1846
2 parents 25721d1 + 77568f7 commit 689ec9a

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)