intent: How to get the index of an integer from a list if the list contains a boolean?
rewritten_intent: get the index of an integer `1` from a list `lst` if the list also contains boolean items
snippet: next(i for i, x in enumerate(lst) if not isinstance(x, bool) and x == 1)