@classmethod
  @gen.coroutine
  def NotifyUpdateUser(cls, client, user_dict, settings_dict, timestamp):
    """Notifies all friends of the specified user that one or more friend-visible attributes
    have been updated (such as name). If only private settings have been updated, only notify
    the user's other devices of the changes.
    """
    user_id = user_dict['user_id']

    if any(('user_id', 'pwd_hash', 'salt') not in attr_name for attr_name in user_dict.keys()):
      # Public user profile fields were updated, so all friends of the user need to be notified of the change.
      invalidate = {'users': [user_id]}
      yield NotificationManager._NotifyFriends(client, 'update_user', user_dict['user_id'], invalidate)
    else:
      # Notify all of the calling user's devices. 
      invalidate = {'users': [user_dict['user_id']]}
      yield NotificationManager.CreateForUser(client, user_id, 'update_user', invalidate=invalidate)
dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/notification_manager.py/NotificationManager.NotifyUpdateUser/swapped operands of `not in`