Add decorator
Include a fallback to local nothing if package is not installed
ADD
plex_trakt_sync/decorators/deprecated.py
+try:
+ from deprecated import deprecated
+except ImportError as e:
+ import warnings
+ from functools import wraps
+
+
+ def deprecated(reason=""):
+ def decorator(fn):
+ @wraps(fn)
+ def wrapper(*args, **kwargs):
+ warnings.warn(reason, DeprecationWarning, 2)
+ return fn(*args, **kwargs)
+
+ return wrapper
+
+ return decorator

Add @deprecated decorator

Include a fallback to local nothing if package is not installed