I want to check if an object is an instance of any class in a list/group of Classes, but I can't find if there is even a pythonic way of doing so without doing
if isinstance(obj, Class1) or isinstance(obj, Class2) ... or isinstance(obj, ClassN):
# proceed with some logic
I mean, comparing class by class.
It would be more likely to use some function similar to isinstance
that would receive n number of Classes to compare against if that even exists.
Thanks in advance for your help!! :)