1
0
forked from VimPlug/jedi

Make sure to use _stub_to_python_value_set for all conversions, see #1466

This commit is contained in:
Dave Halter
2020-01-07 01:27:50 +01:00
parent d8deceb4b1
commit 9b9cacfbf9
6 changed files with 53 additions and 25 deletions

View File

@@ -152,6 +152,12 @@ def test_method_doc_with_signature(Script):
assert c.docstring() == 'writelines(lines: Iterable[AnyStr]) -> None'
def test_method_doc_with_signature2(Script):
code = 'f = open("")\nf.writelines'
d, = Script(code).goto()
assert d.docstring() == 'writelines(lines: Iterable[AnyStr]) -> None'
def test_with_stmt_error_recovery(Script):
assert Script('with open('') as foo: foo.\na').complete(line=1)