Mar-08-2021, 06:36 AM
Quote:classinfo may be a tuple of class objects, in which case every entry in classinfo will be checked. In any other case, a TypeError exception is raised.What it's saying is that it raises
TypeError
when you pass it something other than a tuple.It might not be perfectly clear from that that a single class is also allowed, but it doesn't say an exception is raised unless the condition is true.