Fix most of PEP 484.

This commit is contained in:
Dave Halter
2016-11-15 00:05:08 +01:00
parent 31514dfe76
commit f672b367da
5 changed files with 37 additions and 12 deletions
+3 -3
View File
@@ -77,8 +77,8 @@ def _fix_forward_reference(context, node):
return node
@memoize_default(None, evaluator_is_first_arg=True)
def follow_param(evaluator, param):
@memoize_default()
def follow_param(context, param):
annotation = param.annotation()
return _evaluate_for_annotation(context, annotation)
@@ -96,7 +96,7 @@ def py__annotations__(funcdef):
return dct
@memoize_default(None, evaluator_is_first_arg=True)
@memoize_default()
def find_return_types(context, func):
annotation = py__annotations__(func).get("return", None)
return _evaluate_for_annotation(context, annotation)