File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77]
88
99from abc import abstractmethod
10+ from collections .abc import Generator
1011from ctypes import Structure
1112from ctypes import c_float
1213from ctypes import c_int
@@ -282,9 +283,9 @@ def load(path_or_file_like: PathOrFileLike) -> "DaedalusScript":
282283 return DaedalusScript (_handle = handle , _delete = True )
283284
284285 @property
285- def symbols (self ) -> list [DaedalusSymbol ]:
286+ def symbols (self ) -> Generator [DaedalusSymbol ]:
286287 count = DLL .ZkDaedalusScript_getSymbolCount (self ._handle )
287- return [ self .get_symbol_by_index (i ) for i in range (count )]
288+ return ( self .get_symbol_by_index (i ) for i in range (count ))
288289
289290 def get_instruction (self , address : int ) -> DaedalusInstruction :
290291 return DLL .ZkDaedalusScript_getInstruction (self ._handle , c_size_t (address ))
You can’t perform that action at this time.
0 commit comments