1
0
forked from VimPlug/jedi

Make sure code_lines works on stubs, even if they are builtins

This commit is contained in:
Dave Halter
2019-12-01 19:10:08 +01:00
parent 582df2f76d
commit 6ffeea7eea
4 changed files with 20 additions and 2 deletions

View File

@@ -129,3 +129,9 @@ def inference_state(Script):
@pytest.fixture
def same_process_inference_state(Script):
return Script('', environment=InterpreterEnvironment())._inference_state
@pytest.fixture
def disable_typeshed(monkeypatch):
from jedi.inference.gradual import typeshed
monkeypatch.setattr(typeshed, '_load_from_typeshed', lambda *args, **kwargs: None)