def Callable(deprecation=None, removal=None, alternative=None, description=None):
 def _inner(fun):
  @wraps(fun)
  def __inner(*args, **kwargs):
   from .imports import qualname
   warn(description=(description or qualname(fun)), deprecation=deprecation, removal=removal, alternative=alternative, stacklevel=3)
   return fun(*args, **kwargs)
  return __inner
 return _inner

def Callable ( deprecation = None , removal = None , alternative = None , description = None ) : def _inner ( fun ) : @ wraps ( fun ) def __inner ( * args , ** kwargs ) : from . imports import qualname warn ( description = ( description or qualname ( fun ) ) , deprecation = deprecation , removal = removal , alternative = alternative , stacklevel = 3 ) return fun ( * args , ** kwargs ) return __inner return _inner
decorator for deprecated functions .