Example #1
0
File: util.py Project: djon3s/md
def mapping(obj):
    return expect(obj, Mapping, dict)
Example #2
0
File: util.py Project: djon3s/md
def name(obj):
    return expect(obj, basestring)
Example #3
0
    def __init__(self, procedure):
	super(Annotations, self).__init__()
	self.procedure = weakref.ref(expect(procedure, Callable))