Let's say I wanted to create a generic class so that it can be used similarly to the following:
list[int]
list[int, float]
list[int, str]
If I am not mistaken, the first object represents a list of integers, the second object represents a list of either integers or floats, and the third object represents a list of either integers or strings.
How would I create a generic class that allows for any number of types like the examples above in Python?