mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-02-18 20:29:14 +00:00
Fix subscript in store_annotation + indentation
This commit is contained in:
parent
43348d7d24
commit
c871a4ecc5
@ -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
|
||||
|
@ -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': (
|
||||
|
Loading…
x
Reference in New Issue
Block a user