mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-02 19:05:28 +08:00
A lot of call signature refactorings. Note that this commit is totally broken.
This commit is contained in:
@@ -83,6 +83,9 @@ TestClass.var_local.
|
||||
|
||||
#? int()
|
||||
TestClass().ret(1)
|
||||
# Should not return int(), because we want the type before `.ret(1)`.
|
||||
#? 11 TestClass()
|
||||
TestClass().ret(1)
|
||||
#? int()
|
||||
inst.ret(1)
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@ class TestCallSignatures(TestCase):
|
||||
assert len(signatures) <= 1
|
||||
|
||||
if not signatures:
|
||||
assert expected_name is None
|
||||
assert expected_name is None, \
|
||||
'There are no signatures, but %s expected.' % expected_name
|
||||
else:
|
||||
assert signatures[0].name == expected_name
|
||||
assert signatures[0].index == expected_index
|
||||
@@ -27,9 +28,6 @@ class TestCallSignatures(TestCase):
|
||||
|
||||
def test_simple(self):
|
||||
run = self._run_simple
|
||||
s7 = "str().upper().center("
|
||||
s8 = "str(int[zip("
|
||||
run(s7, 'center', 0)
|
||||
|
||||
# simple
|
||||
s1 = "sorted(a, str("
|
||||
|
||||
Reference in New Issue
Block a user