AugAssign()
This commit is contained in:
parent
f448993c0d
commit
48745f2ae9
@ -1,5 +1,5 @@
|
|||||||
from .definitions import FunctionDef, Return, Lambda
|
from .definitions import FunctionDef, Return, Lambda
|
||||||
from .statements import Pass, Assign, AnnAssign
|
from .statements import Pass, Assign, AnnAssign, AugAssign
|
||||||
from .expressions import Expr, UnaryOp, BinOp, Call, Compare, Attribute, Subscript, Slice, keyword, IfExp
|
from .expressions import Expr, UnaryOp, BinOp, Call, Compare, Attribute, Subscript, Slice, keyword, IfExp
|
||||||
from .literals import Constant, Tuple, List, Set, Dict, FormattedValue, JoinedStr
|
from .literals import Constant, Tuple, List, Set, Dict, FormattedValue, JoinedStr
|
||||||
from .variables import Name
|
from .variables import Name
|
||||||
|
|||||||
@ -19,3 +19,8 @@ def AnnAssign(self, cmtor):
|
|||||||
if type(self.value) not in flags.ASSIGN_SILENT:
|
if type(self.value) not in flags.ASSIGN_SILENT:
|
||||||
cmtor.append_comment(f"----------")
|
cmtor.append_comment(f"----------")
|
||||||
cmtor.process(self.target)
|
cmtor.process(self.target)
|
||||||
|
|
||||||
|
|
||||||
|
def AugAssign(self, cmtor):
|
||||||
|
AnnAssign(self, cmtor)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user