mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 09:10:12 +08:00
Issue with numbers after names in call signatures. It would cause Jedi to stop analysing call signatures. Fixes #510
This commit is contained in:
1 parent
7a22d374ca
commit
47bf1c5daf
2 files changed
+18
No files matched your search
@@ -195,6 +195,20 @@ class TestCallSignatures(TestCase):
|
||||
def test_flow_call(self):
|
||||
assert not Script('if (1').call_signatures()
|
||||
|
||||
def test_chained_calls(self):
|
||||
source = dedent('''
|
||||
class B():
|
||||
def test2(self, arg):
|
||||
pass
|
||||
|
||||
class A():
|
||||
def test1(self):
|
||||
return B()
|
||||
|
||||
A().test1().test2(''')
|
||||
|
||||
self._run(source, 'test2', 0)
|
||||
|
||||
|
||||
class TestParams(TestCase):
|
||||
def params(self, source, line=None, column=None):
|
||||
|
||||
Reference in new issue
Block a user