1
0
forked from VimPlug/jedi

stars -> star_count.

This commit is contained in:
Dave Halter
2017-04-08 15:26:57 +02:00
parent 1625834f81
commit 545cb26f78
6 changed files with 29 additions and 29 deletions
+3 -3
View File
@@ -81,18 +81,18 @@ def _fix_forward_reference(context, node):
@memoize_default()
def follow_param(context, param):
annotation = param.annotation()
annotation = param.get_annotation()
return _evaluate_for_annotation(context, annotation)
def py__annotations__(funcdef):
return_annotation = funcdef.annotation()
return_annotation = funcdef.get_annotation()
if return_annotation:
dct = {'return': return_annotation}
else:
dct = {}
for function_param in funcdef.params:
param_annotation = function_param.annotation()
param_annotation = function_param.get_annotation()
if param_annotation is not None:
dct[function_param.name.value] = param_annotation
return dct