partial is working partially now with the new parser, because invalid statements are not possible anymore (two times **kwargs)
This commit is contained in:
1 parent
8f1002218d
commit
478acf8ccf
2 files changed
+6
-2
No files matched your search
@@ -5,4 +5,5 @@ class partial():
|
||||
self.__keywords = keywords
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self.__func(*(self.__args + args), **dict(self.__keywords, **kwargs))
|
||||
# TODO should be **dict(self.__keywords, **kwargs)
|
||||
return self.__func(*(self.__args + args), **self.__keywords)
|
||||
Reference in new issue
Block a user