def call(self, name, *a, **kw): return ( Maybe.from_call(self.vim.call, name, *a, exc=NvimError, **kw) .to_either(lambda: 'vim call failed: {}'.format( format_funcall(name, a, kw))) )
def __repr__(self): from tryp.anon import format_funcall rep = (format_funcall(self.name, self.f.args, self.f.keywords) if self._is_partial else '{}()'.format(self.name)) return 'F({})'.format(rep)