mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
get_function_execution -> as_context
This commit is contained in:
@@ -227,7 +227,7 @@ def _infer_for_statement_string(module_context, string):
|
||||
module_context,
|
||||
funcdef
|
||||
)
|
||||
func_execution_context = function_value.get_function_execution()
|
||||
func_execution_context = function_value.as_context()
|
||||
# Use the module of the param.
|
||||
# TODO this module is not the module of the param in case of a function
|
||||
# call. In that case it's the module of the function call.
|
||||
|
||||
Reference in New Issue
Block a user