Exemple #1
0
def mapping(obj):
    return expect(obj, Mapping, dict)
Exemple #2
0
def name(obj):
    return expect(obj, basestring)
Exemple #3
0
    def __init__(self, procedure):
	super(Annotations, self).__init__()
	self.procedure = weakref.ref(expect(procedure, Callable))