Alexey Izbyshev <izbys...@ispras.ru> added the comment: > Is there any sense in accepting non-types as the first argument of > issubclass()?
No, though it is not (clearly) documented. The docs mention TypeError, but only for the second argument if my reading is correct. In practice, issubclass() raises a TypeError if the first argument is not a class object: >>> issubclass(1, int) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: issubclass() arg 1 must be a class Though, as I mentioned above, behavior for ABCs was always weird. ---------- versions: -Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32999> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com