def __call__(self, *args, **kwargs):
contract = self.contract(*args, **kwargs)
if type(contract) == type:
# contract still needs to be initialized, wrap afterwards
return compose(ContractSugar, contract)
else:
return ContractSugar(contract)
评论列表
文章目录