Allow Annotation to contain any BaseExpression

An `Annotation` can contain any `BaseExpression`, not just the short
list of types we had listed.

For example, this is valid syntax:

    val: 1 + 2 = None
This commit is contained in:
Benjamin Woodruff 2019-08-06 17:15:22 -07:00 committed by Benjamin Woodruff
parent 2ba295cc01
commit 4a84389fed

View file

@ -1291,7 +1291,7 @@ class Annotation(CSTNode):
#: The annotation's value itself. This is the part of the annotation after the
#: colon or arrow.
annotation: Union[Name, Attribute, BaseString, Subscript]
annotation: Union[BaseExpression]
whitespace_before_indicator: Union[
BaseParenthesizableWhitespace, MaybeSentinel