1
0
forked from VimPlug/jedi

allow_descriptor_getattr -> allow_unsafe_interpreter_executions

This commit is contained in:
Dave Halter
2023-07-29 00:03:45 +02:00
parent 62cbcb0844
commit 8a4b079d0f
5 changed files with 10 additions and 6 deletions

View File

@@ -741,7 +741,8 @@ class Interpreter(Script):
super().__init__(code, environment=environment, project=project, **kwds)
self.namespaces = namespaces
self._inference_state.allow_descriptor_getattr = settings.instance_allow_descriptor_getattr
self._inference_state.allow_unsafe_executions = \
settings.allow_unsafe_interpreter_executions
# Dynamic params search is important when we work on functions that are
# called by other pieces of code. However for interpreter completions
# this is not important at all, because the current code is always new