old_contents: def weight(weight):
      """ Make able to put weight in classes or functions by decorator @weight"""
      def decorator(func):
          func.weight = weight
          return func
  
      return decorator
  
new_contents: def weight(value):
      """ Make able to put weight in classes or functions by decorator @weight"""
  
      def decorator(func):
          func.weight = value
          return func
  
      return decorator
  
subject: Fix pylint