Make sure to use a python 3 parser for stub files

This commit is contained in:
Dave Halter
2019-05-18 18:25:32 +02:00
parent 4176af337f
commit 61ccbb0d3e

View File

@@ -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,