From 61ccbb0d3e61cc312fca707d74974bf7a62dde77 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 18 May 2019 18:25:32 +0200 Subject: [PATCH] Make sure to use a python 3 parser for stub files --- jedi/api/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jedi/api/__init__.py b/jedi/api/__init__.py index f6e57fcb..615d2248 100644 --- a/jedi/api/__init__.py +++ b/jedi/api/__init__.py @@ -119,6 +119,7 @@ class Script(object): code=source, path=self.path, encoding=encoding, + use_latest_grammar=path and path.endswith('.pyi'), cache=False, # No disk cache, because the current script often changes. diff_cache=settings.fast_parser, cache_path=settings.cache_directory,