@@ -215,7 +215,12 @@ def set_field_bitfield_size(
215215 # Invalidate readiness cache
216216 self ._ready_cache = None
217217
218- def set_field_ready (self , name : str , is_ready : bool = False , size_of_containing_type : Optional [int ] = None ) -> None :
218+ def set_field_ready (
219+ self ,
220+ name : str ,
221+ is_ready : bool = False ,
222+ size_of_containing_type : Optional [int ] = None ,
223+ ) -> None :
219224 """Mark a field as ready or not ready."""
220225 if name not in self .fields :
221226 raise KeyError (f"Field '{ name } ' does not exist in node '{ self .name } '" )
@@ -226,7 +231,9 @@ def set_field_ready(self, name: str, is_ready: bool = False, size_of_containing_
226231 # Invalidate readiness cache
227232 self ._ready_cache = None
228233
229- def _calculate_size (self , name : str , size_of_containing_type : Optional [int ] = None ) -> int :
234+ def _calculate_size (
235+ self , name : str , size_of_containing_type : Optional [int ] = None
236+ ) -> int :
230237 processing_field = self .fields [name ]
231238 # size_of_field will be in bytes
232239 if processing_field .type .__module__ == ctypes .__name__ :
@@ -244,8 +251,7 @@ def _calculate_size(self, name: str, size_of_containing_type: Optional[int] = No
244251 return size_of_field
245252 elif processing_field .containing_type .__module__ == "vmlinux" :
246253 size_of_field = (
247- size_of_containing_type
248- * processing_field .type_size
254+ size_of_containing_type * processing_field .type_size
249255 )
250256 return size_of_field
251257 elif issubclass (processing_field .ctype_complex_type , ctypes ._Pointer ):
0 commit comments