def classImplementsOnly(cls, *interfaces):
    spec = implementedBy(cls)
    spec.declared = ()
    spec.inherit = None
    classImplements(cls, *interfaces)
Declare the only interfaces implemented by instances of a class
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/zope/zope/interface/declarations.py/classImplementsOnly