1
0
forked from VimPlug/jedi

Fix os.path.join static value gathering

This commit is contained in:
Dave Halter
2019-08-06 22:48:28 +02:00
parent 81488bcd20
commit 7c1c4981fb
3 changed files with 40 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ class ParamIssue(Exception):
pass
def repack_with_argument_clinic(string, keep_arguments_param=False):
def repack_with_argument_clinic(string, keep_arguments_param=False, keep_callback_param=False):
"""
Transforms a function or method with arguments to the signature that is
given as an argument clinic notation.
@@ -55,6 +55,8 @@ def repack_with_argument_clinic(string, keep_arguments_param=False):
arguments = kwargs['arguments']
else:
arguments = kwargs.pop('arguments')
if not keep_arguments_param:
kwargs.pop('callback', None)
try:
args += tuple(_iterate_argument_clinic(
context.evaluator,