annotate args type need to be expr's not constants

This commit is contained in:
rocky
2017-04-12 20:12:41 -04:00
parent 45bd8e4058
commit be9194c223
2 changed files with 5 additions and 9 deletions

View File

@@ -282,8 +282,7 @@ class Python3Parser(PythonParser):
# int, float, str
annotate_arg ::= LOAD_NAME
# LOAD_CONST is used in an annotation string
annotate_arg ::= LOAD_CONST
annotate_arg ::= LOAD_GLOBAL
annotate_arg ::= expr
# This stores the tuple of parameter names
# that have been annotated