mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-14 01:38:57 +08:00
Fix get_line_code for stubs
This commit is contained in:
1 parent
98d0a55a02
commit
6094e7b39a
2 files changed
+13
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user