mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Fix some call signature tests
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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(), "
|
||||
|
||||
Reference in New Issue
Block a user