def do_send_typing_notification(realm: Realm, sender: UserProfile, recipient_user_profiles: List[UserProfile], operator: str) -> None:
    sender_dict = {'user_id': sender.id, 'email': sender.email}
    recipient_dicts = [{'user_id': profile.id, 'email': profile.email} for profile in recipient_user_profiles]
    event = dict(type='typing', op=operator, sender=sender_dict, recipients=recipient_dicts)
    user_ids_to_notify = [user.id for user in recipient_user_profiles if user.is_active]
    send_event(realm, event, user_ids_to_notify)
def do_send_typing_notification(realm: Realm, sender: UserProfile, recipient_user_profiles: List[UserProfile], operator: str) -> None:
    sender_dict = {'user_id': sender.id, 'email': sender.email}
    recipient_dicts = [{'user_id': profile.id, 'email': profile.email} for profile in recipient_user_profiles]
    event = dict(type='typing', op=operator, sender=sender_dict, recipients=recipient_dicts)
    user_ids_to_notify = [user.id for user in recipient_user_profiles if user.is_active]
    send_event(realm, event, user_ids_to_notify)