def HasSuperClassInSet(self, cls, known):
    'Queries whether a superclass of a type is present in a given set.'
    return any(((sub in known) for sub in self._superclasses[cls]))
Queries whether a superclass of a type is present in a given set.
def HasSuperClassInSet(self, cls, known):
    
    return any(((sub in known) for sub in self._superclasses[cls]))