Open jayvdb opened 3 years ago
ast.AnnAssign proves typed assignments (a: int = 1).
ast.AnnAssign
a: int = 1
It is slightly different structure from ast.Assign as there is only one target instead of an array of targets, and includes an annotation which could be ignored initially.
ast.Assign
target
targets
annotation
ast.AnnAssign
proves typed assignments (a: int = 1
).It is slightly different structure from
ast.Assign
as there is only onetarget
instead of an array oftargets
, and includes anannotation
which could be ignored initially.