def mapping(obj): return expect(obj, Mapping, dict)
def name(obj): return expect(obj, basestring)
def __init__(self, procedure): super(Annotations, self).__init__() self.procedure = weakref.ref(expect(procedure, Callable))