Commit 1e5fca88 authored by Stefan Behnel's avatar Stefan Behnel

Add comment.

parent dec248ec
...@@ -1640,6 +1640,7 @@ class FuncDefNode(StatNode, BlockNode): ...@@ -1640,6 +1640,7 @@ class FuncDefNode(StatNode, BlockNode):
error(arg.pos, "Non-default argument following default argument") error(arg.pos, "Non-default argument following default argument")
def analyse_annotation(self, env, annotation): def analyse_annotation(self, env, annotation):
# Annotations can not only contain valid Python expressions but arbitrary type references.
if annotation is None: if annotation is None:
return None return None
if annotation.analyse_as_type(env) is None: if annotation.analyse_as_type(env) is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment