Patty C·FollowJun 29, 2024--ListenShareYou can use Iterable[] and also another nice touch here is to make a type alias called something like numeric that is the union of int and float :) reads so much nicer in your type hinting