diff --git a/device_smi/device.py b/device_smi/device.py index b4298b3..eeb229c 100644 --- a/device_smi/device.py +++ b/device_smi/device.py @@ -1,5 +1,6 @@ import platform import re +import warnings from .apple import AppleDevice from .base import _run @@ -51,6 +52,14 @@ def __init__(self, device): else: raise Exception(f"The device {device_type} is not supported") + def info(self): + warnings.warn( + "info() method is deprecated and will be removed in next release.", + DeprecationWarning, + stacklevel=2 + ) + return self + def memory_total(self): return self.memory_total