@@ -264,7 +264,7 @@ class Jump(Statement):
264
264
"target_idx" ,
265
265
)
266
266
267
- def __init__ (self , idx , target , target_idx : int | None = None , ** kwargs ):
267
+ def __init__ (self , idx : int | None , target : Expression , target_idx : int | None = None , ** kwargs ):
268
268
super ().__init__ (idx , ** kwargs )
269
269
270
270
self .target = target
@@ -329,10 +329,10 @@ class ConditionalJump(Statement):
329
329
330
330
def __init__ (
331
331
self ,
332
- idx ,
333
- condition ,
334
- true_target ,
335
- false_target ,
332
+ idx : int | None ,
333
+ condition : Expression ,
334
+ true_target : Expression | None ,
335
+ false_target : Expression | None ,
336
336
true_target_idx : int | None = None ,
337
337
false_target_idx : int | None = None ,
338
338
** kwargs ,
@@ -477,8 +477,8 @@ class Call(Expression, Statement):
477
477
478
478
def __init__ (
479
479
self ,
480
- idx ,
481
- target ,
480
+ idx : int | None ,
481
+ target : Expression | str ,
482
482
calling_convention : SimCC | None = None ,
483
483
prototype = None ,
484
484
args : Sequence [Expression ] | None = None ,
@@ -651,7 +651,7 @@ class Return(Statement):
651
651
652
652
__slots__ = ("ret_exprs" ,)
653
653
654
- def __init__ (self , idx , ret_exprs , ** kwargs ):
654
+ def __init__ (self , idx : int | None , ret_exprs , ** kwargs ):
655
655
super ().__init__ (idx , ** kwargs )
656
656
self .ret_exprs = ret_exprs if isinstance (ret_exprs , list ) else list (ret_exprs )
657
657
@@ -762,7 +762,7 @@ class Label(Statement):
762
762
"block_idx" ,
763
763
)
764
764
765
- def __init__ (self , idx , name : str , ins_addr : int , block_idx : int | None = None , ** kwargs ):
765
+ def __init__ (self , idx : int | None , name : str , ins_addr : int , block_idx : int | None = None , ** kwargs ):
766
766
super ().__init__ (idx , ** kwargs )
767
767
self .name = name
768
768
self .ins_addr = ins_addr
0 commit comments