from functools import wraps


def if_any(*conds):
    def wrapper(func):
        @wraps
        def run_if_any(*args, **kwargs):
            if any(conds):
                return func(*args, **kwargs)
        return run_if_any
    return wrapper
    

def if_all(*conds):
    def wrapper(func):
        @wraps
        def run_if_all(*args, **kwargs):
            if all(conds):
                return func(*args, **kwargs)
        return run_if_all
    return wrapper

from functools import wraps


def if_any(*conds):
    def wrapper(func):
        @wraps(func)
        def run_if_any(*args, **kwargs):
            if any(conds):
                return func(*args, **kwargs)
        return run_if_any
    return wrapper
    

def if_all(*conds):
    def wrapper(func):
        @wraps(func)
        def run_if_all(*args, **kwargs):
            if all(conds):
                return func(*args, **kwargs)
        return run_if_all
    return wrapper

Add argument to @wraps decorator
Add argument to @wraps decorator

  from functools import wraps
  
  
  def if_any(*conds):
      def wrapper(func):
-         @wraps
+         @wraps(func)
          def run_if_any(*args, **kwargs):
              if any(conds):
                  return func(*args, **kwargs)
          return run_if_any
      return wrapper
      
  
  def if_all(*conds):
      def wrapper(func):
-         @wraps
+         @wraps(func)
          def run_if_all(*args, **kwargs):
              if all(conds):
                  return func(*args, **kwargs)
          return run_if_all
      return wrapper
  
Add argument to @wraps decorator
## Code Before:
from functools import wraps


def if_any(*conds):
    def wrapper(func):
        @wraps
        def run_if_any(*args, **kwargs):
            if any(conds):
                return func(*args, **kwargs)
        return run_if_any
    return wrapper
    

def if_all(*conds):
    def wrapper(func):
        @wraps
        def run_if_all(*args, **kwargs):
            if all(conds):
                return func(*args, **kwargs)
        return run_if_all
    return wrapper

## Instruction:
Add argument to @wraps decorator
## Code After:
from functools import wraps


def if_any(*conds):
    def wrapper(func):
        @wraps(func)
        def run_if_any(*args, **kwargs):
            if any(conds):
                return func(*args, **kwargs)
        return run_if_any
    return wrapper
    

def if_all(*conds):
    def wrapper(func):
        @wraps(func)
        def run_if_all(*args, **kwargs):
            if all(conds):
                return func(*args, **kwargs)
        return run_if_all
    return wrapper
