forked from VimPlug/jedi
Make sure to use _stub_to_python_value_set for all conversions, see #1466
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user