Iterators as function inputs in Python can cause complex errors, due to storing references, differences between iterators and iterables, and other subtleties.
Iterable Membership Check
Using in
for memberships in Python for iterables can behave differently. A list, dict, or iterator behave differently and type checkers may not find errors.