1
0
forked from VimPlug/jedi

Fixes towards better MergedArray and partial functions.

This commit is contained in:
Dave Halter
2014-11-20 13:33:05 +01:00
parent a6e1348757
commit cc465364d3
4 changed files with 20 additions and 10 deletions

View File

@@ -5,5 +5,4 @@ class partial():
self.__keywords = keywords
def __call__(self, *args, **kwargs):
# I know this doesn't work in Python, but in Jedi it does ;-)
return self.__func(*self.__args, *args, **self.__keywords, **kwargs)
return self.__func(*(self.__args + args), **dict(self.__keywords, **kwargs))