mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 15:24:46 +08:00
Fix Statement.get_code
Parsed Statement.assignment_details must be used. Otherwise, incorrect code is returned at the first time Statement.get_code is called.
This commit is contained in:
@@ -96,7 +96,6 @@ class TestRegression(TestBase):
|
||||
pass
|
||||
f""")
|
||||
doc = defs[0].doc
|
||||
doc = defs[0].doc # removing this line won't work
|
||||
assert "f(x, y = 1, z = 'a')" in doc
|
||||
|
||||
def test_definition_at_zero(self):
|
||||
|
||||
Reference in New Issue
Block a user