def is_list(obj): # checks for list or tuples return type(obj) in (list, tuple)class A: def __init__(self): passis_list(A) # FALSE