def directlyProvidedBy(object):
 provides = getattr(object, '__provides__', None)
 if ((provides is None) or isinstance(provides, Implements)):
  return _empty
 return Declaration(provides.__bases__[:(-1)])

def directlyProvidedBy ( object ) : provides = getattr ( object , '__provides__' , None ) if ( ( provides is None ) or isinstance ( provides , Implements ) ) : return _empty return Declaration ( provides . __bases__ [ : ( - 1 ) ] )
return the interfaces directly provided by the given object the value returned is an ideclaration .