@@ -68,10 +68,10 @@ def _inflate_struct_attributes(
6868 ) -> None :
6969 current_offset = 0
7070
71- for name , annotation in iterate_annotation_chain (reference_type , terminate_at = struct ):
72- if name in reference_type .__dict__ :
71+ for name , annotation , reference in iterate_annotation_chain (reference_type , terminate_at = struct ):
72+ if name in reference .__dict__ :
7373 # Field associated with the annotation
74- attrs = getattr (reference_type , name )
74+ attrs = getattr (reference , name )
7575
7676 # If attrs is not a tuple, we need to convert it to a tuple
7777 if not isinstance (attrs , tuple ):
@@ -113,10 +113,11 @@ def compute_own_size(cls: type[struct_impl], reference_type: type) -> None:
113113 """Compute the size of the struct."""
114114 size = 0
115115
116- for name , annotation in iterate_annotation_chain (reference_type , terminate_at = struct ):
117- if name in reference_type .__dict__ :
116+ for name , annotation , reference in iterate_annotation_chain (reference_type , terminate_at = struct ):
117+ print (name , annotation , reference )
118+ if name in reference .__dict__ :
118119 # Field associated with the annotation
119- attrs = getattr (reference_type , name )
120+ attrs = getattr (reference , name )
120121
121122 # If attrs is not a tuple, we need to convert it to a tuple
122123 if not isinstance (attrs , tuple ):
0 commit comments