示例#1
0
文件: util.py 项目: djon3s/md
def mapping(obj):
    return expect(obj, Mapping, dict)
示例#2
0
文件: util.py 项目: djon3s/md
def name(obj):
    return expect(obj, basestring)
示例#3
0
文件: annotate.py 项目: djon3s/md
    def __init__(self, procedure):
	super(Annotations, self).__init__()
	self.procedure = weakref.ref(expect(procedure, Callable))