mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-04 04:43:47 +08:00
Separate getting docstrings and getting signatures for names, see discussion #1466
This commit is contained in:
1 parent
bb3a81c578
commit
0a53ce5136
6 files changed
+56
-40
No files matched your search
@@ -145,6 +145,13 @@ def test_async(Script, environment):
|
||||
assert 'hey' in names
|
||||
|
||||
|
||||
def test_method_doc_with_signature(Script):
|
||||
code = 'f = open("")\nf.writelin'
|
||||
c, = Script(code).complete()
|
||||
assert c.name == 'writelines'
|
||||
assert c.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