def implementsOnly(*interfaces):
 _implements('implementsOnly', interfaces, classImplementsOnly)

def implementsOnly ( * interfaces ) : _implements ( 'implementsOnly' , interfaces , classImplementsOnly )
declare the only interfaces implemented by instances of a class this function is called in a class definition .