def METHOD_NAME(
    capability: ShiftUserCapability,
):
    return (
        ShiftAttendance.objects.filter(
            slot__required_capabilities__contains=[capability],
            state__in=ShiftAttendance.STATES_WHERE_THE_MEMBER_IS_EXPECTED_TO_SHOW_UP,
        )
        .distinct()
        .values_list("user__id", flat=True)
    )