From e85fba844c977740e1171d8719db805fae3b6da6 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 9 Jul 2019 00:46:53 -0700 Subject: [PATCH] Fix some call signature tests --- jedi/api/helpers.py | 2 +- test/test_api/test_call_signatures.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/api/helpers.py b/jedi/api/helpers.py index c262d873..8eedff97 100644 --- a/jedi/api/helpers.py +++ b/jedi/api/helpers.py @@ -250,7 +250,7 @@ def _iter_arguments(nodes, position): if second.start_pos < position: yield 0, first.value, True else: - yield 0, remove_after_pos(first), True + yield 0, remove_after_pos(first), False elif first in ('*', '**'): yield len(first.value), remove_after_pos(second), False else: diff --git a/test/test_api/test_call_signatures.py b/test/test_api/test_call_signatures.py index 63b88956..75b4c8ac 100644 --- a/test/test_api/test_call_signatures.py +++ b/test/test_api/test_call_signatures.py @@ -44,7 +44,7 @@ class TestCallSignatures(TestCase): run(s1, 'sorted', 0, 7) run(s1, 'sorted', 1, 9) run(s1, 'sorted', 1, 10) - run(s1, 'sorted', 1, 11) + run(s1, 'sorted', None, 11) run(s1, 'bool', 0, 15) s2 = "abs(), "