File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed 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
@@ -293,9 +294,9 @@ def load(path_or_file_like: PathOrFileLike) -> "DaedalusScript":
293294 return DaedalusScript (_handle = handle , _delete = True )
294295
295296 @property
296- def symbols (self ) -> list [DaedalusSymbol ]:
297+ def symbols (self ) -> Generator [DaedalusSymbol ]:
297298 count = DLL .ZkDaedalusScript_getSymbolCount (self ._handle )
298- return [ self .get_symbol_by_index (i ) for i in range (count )]
299+ return ( self .get_symbol_by_index (i ) for i in range (count ))
299300
300301 def get_instruction (self , address : int ) -> DaedalusInstruction :
301302 return DLL .ZkDaedalusScript_getInstruction (self ._handle , c_size_t (address ))
You can’t perform that action at this time.
0 commit comments