Mar-15-2021, 04:58 PM
To be fair to Python, though, the interactive docs don't have this ambiguous phrasing, and indicate that it returns a bool (though, there's no mention of any exceptions ever being possible...)
>>> help(issubclass) Help on built-in function issubclass in module builtins: issubclass(cls, class_or_tuple, /) Return whether 'cls' is a derived from another class or is the same class. A tuple, as in ``issubclass(x, (A, B, ...))``, may be given as the target to check against. This is equivalent to ``issubclass(x, A) or issubclass(x, B) or ...`` etc.