mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-18 06:19:39 +08:00
Make a function private
This commit is contained in:
@@ -276,7 +276,7 @@ def infer_return_for_callable(arguments, param_values, result_values):
|
|||||||
all_type_vars = {}
|
all_type_vars = {}
|
||||||
for pv in param_values:
|
for pv in param_values:
|
||||||
if pv.array_type == 'list':
|
if pv.array_type == 'list':
|
||||||
type_var_dict = infer_type_vars_for_callable(arguments, pv.py__iter__())
|
type_var_dict = _infer_type_vars_for_callable(arguments, pv.py__iter__())
|
||||||
all_type_vars.update(type_var_dict)
|
all_type_vars.update(type_var_dict)
|
||||||
|
|
||||||
return ValueSet.from_sets(
|
return ValueSet.from_sets(
|
||||||
@@ -286,7 +286,7 @@ def infer_return_for_callable(arguments, param_values, result_values):
|
|||||||
).execute_annotation()
|
).execute_annotation()
|
||||||
|
|
||||||
|
|
||||||
def infer_type_vars_for_callable(arguments, lazy_params):
|
def _infer_type_vars_for_callable(arguments, lazy_params):
|
||||||
"""
|
"""
|
||||||
Infers type vars for the Calllable class:
|
Infers type vars for the Calllable class:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user