Skip to content

Commit

Permalink
Add @deprecated decorator to Zed2i
Browse files Browse the repository at this point in the history
  • Loading branch information
m-decoster committed Dec 10, 2024
1 parent 9311f89 commit 2ca92a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airo-camera-toolkit/airo_camera_toolkit/cameras/zed/zed.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Any, List, Optional

from loguru import logger
from typing_extensions import deprecated

try:
import pyzed.sl as sl
Expand Down Expand Up @@ -294,6 +295,7 @@ def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None:
self.camera.close()


@deprecated("Use Zed instead.")
class Zed2i(Zed):
"""Present for backwards compatibility, use Zed instead."""

Expand Down

0 comments on commit 2ca92a8

Please sign in to comment.