1
0
forked from VimPlug/jedi

Some changes to get stubs working better for mixed objects

This commit is contained in:
Dave Halter
2019-06-03 20:28:04 +02:00
parent c8d658e452
commit bade4e661f
3 changed files with 30 additions and 12 deletions

View File

@@ -358,6 +358,12 @@ def test_name_not_findable():
assert jedi.Interpreter("X.NOT_FINDA", [locals()]).completions()
def test_stubs_working():
from multiprocessing import cpu_count
defs = jedi.Interpreter("cpu_count()", [locals()]).goto_definitions()
assert [d.name for d in defs] == ['int']
def test_sys_path_docstring(): # Was an issue in #1298
import jedi
s = jedi.Interpreter("from sys import path\npath", line=2, column=4, namespaces=[locals()])