Probably using the 3.10 grammar is better for stubs for now

This commit is contained in:
Dave Halter
2022-11-21 21:06:56 +01:00
parent a3fed3b6a6
commit 6b73d5c1bf

View File

@@ -90,7 +90,7 @@ class InferenceState:
self.compiled_subprocess = environment.get_inference_state_subprocess(self)
self.grammar = environment.get_grammar()
self.latest_grammar = parso.load_grammar(version='3.12')
self.latest_grammar = parso.load_grammar(version='3.10')
self.memoize_cache = {} # for memoize decorators
self.module_cache = imports.ModuleCache() # does the job of `sys.modules`.
self.stub_module_cache = {} # Dict[Tuple[str, ...], Optional[ModuleValue]]