mirror of
https://github.com/davidhalter/jedi.git
synced 2026-11-04 17:12:51 +08:00
Make sure code_lines works on stubs, even if they are builtins
This commit is contained in:
1 parent
582df2f76d
commit
6ffeea7eea
4 files changed
+20
-2
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user