original_docstring: Return a decorator which adds a warning to functions.
docstring: Return a decorator which adds a warning to functions.
docstring_tokens: Return a decorator which adds a warning to functions .
code: def deprecate(
      message: str, category: Any = DeprecationWarning, stacklevel: int = 0
  ) -> Callable[[F], F]:
      """Return a decorator which adds a warning to functions."""
  
      def decorator(func: F) -> F:
          if not __debug__:
              return func
  
          @functools.wraps(func)
          def wrapper(*args, **kargs):  # type: ignore
              warnings.warn(message, category, stacklevel=stacklevel + 2)
              return func(*args, **kargs)
  
          return cast(F, wrapper)
  
      return decorator
code_tokens: def deprecate ( message : str , category : Any = DeprecationWarning , stacklevel : int = 0 ) -> Callable [ [ F ] , F ] : def decorator ( func : F ) -> F : if not __debug__ : return func @ functools . wraps ( func ) def wrapper ( * args , ** kargs ) : warnings . warn ( message , category , stacklevel = stacklevel + 2 ) return func ( * args , ** kargs ) return cast ( F , wrapper ) return decorator
short_docstring: Return a decorator which adds a warning to functions.
short_docstring_tokens: Return a decorator which adds a warning to functions .
comment: """Return a decorator which adds a warning to functions."""$SEP$# type: ignore