instead of doing it this way, why don't you move line 101 (`isinstance(obj, (ABCSeries, np.ndarray)`) to be tested first and add `tuple` to the list of classes. That should cover the same set of cases and remove an unnecessary branch.