mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-06 20:08:49 +08:00
Fix compiled docstrings for stubs
This commit is contained in:
1 parent
5d24bc7625
commit
e086c433ff
3 files changed
+36
-12
No files matched your search
@@ -77,7 +77,9 @@ def test_method_completion(Script, environment):
|
||||
def test_time_docstring(Script):
|
||||
import time
|
||||
comp, = Script('import time\ntime.sleep').completions()
|
||||
assert comp.docstring() == time.sleep.__doc__
|
||||
assert comp.docstring(raw=True) == time.sleep.__doc__
|
||||
expected = 'sleep(secs: float) -> None\n\n' + time.sleep.__doc__
|
||||
assert comp.docstring() == expected
|
||||
|
||||
|
||||
def test_dict_values(Script):
|
||||
|
||||
Reference in new issue
Block a user