1
0
forked from VimPlug/jedi

Fix get_line_code for stubs

This commit is contained in:
Dave Halter
2020-10-24 10:12:21 +02:00
parent 98d0a55a02
commit 6094e7b39a
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ class Script:
self._module_node, code = self._inference_state.parse_and_get_code(
code=code,
path=self.path,
use_latest_grammar=path and path.suffix == 'pyi',
use_latest_grammar=path and path.suffix == '.pyi',
cache=False, # No disk cache, because the current script often changes.
diff_cache=settings.fast_parser,
cache_path=settings.cache_directory,