mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Start implementing overload function
This commit is contained in:
@@ -48,7 +48,7 @@ class StdlibPlugin(BasePlugin):
|
||||
def execute(self, callback):
|
||||
def wrapper(context, arguments):
|
||||
if isinstance(context, BoundMethod):
|
||||
return callback(context, arguments)
|
||||
return callback(context, arguments=arguments)
|
||||
|
||||
debug.dbg('execute: %s %s', context, arguments)
|
||||
try:
|
||||
@@ -69,8 +69,8 @@ class StdlibPlugin(BasePlugin):
|
||||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
return func(self._evaluator, context, arguments)
|
||||
return callback(context, arguments)
|
||||
return func(self._evaluator, context, arguments=arguments)
|
||||
return callback(context, arguments=arguments)
|
||||
|
||||
return wrapper
|
||||
|
||||
|
||||
Reference in New Issue
Block a user