Fix subscript in store_annotation + indentation

This commit is contained in:
x0ret 2019-06-12 00:26:34 +04:30
parent 43348d7d24
commit c871a4ecc5
2 changed files with 2 additions and 1 deletions

View File

@ -276,6 +276,7 @@ class Python36Parser(Python35Parser):
ann_assign_init_value ::= expr store store_annotation
ann_assign_no_init ::= store_annotation
store_annotation ::= LOAD_NAME STORE_ANNOTATION
store_annotation ::= subscript STORE_ANNOTATION
"""
self.addRule(rule, nop_func)
# Check to combine assignment + annotation into one statement

View File

@ -61,7 +61,7 @@ def customize_for_version36(self, version):
'%c(%p)',
(0, 'expr'), (1, 100)),
'store_annotation': (
'%|%[1]{pattr}: %c',
'%[1]{pattr}: %c',
0
),
'ann_assign_init_value': (