From a03d3e5d4c5d37ef2d8312dde9c61bd4315521f7 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Tue, 14 Oct 2025 02:36:04 +0530 Subject: [PATCH] format chore --- pythonbpf/vmlinux_parser/class_handler.py | 12 ++++++++++-- tests/failing_tests/xdp_pass.py | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pythonbpf/vmlinux_parser/class_handler.py b/pythonbpf/vmlinux_parser/class_handler.py index 1ffe2b3..cf82e50 100644 --- a/pythonbpf/vmlinux_parser/class_handler.py +++ b/pythonbpf/vmlinux_parser/class_handler.py @@ -112,7 +112,11 @@ def process_vmlinux_post_ast( type_length = elem_type._length_ if containing_type.__module__ == "vmlinux": - new_dep_node.add_dependent(elem_type._type_.__name__ if hasattr(elem_type._type_, "__name__") else str(elem_type._type_)) + new_dep_node.add_dependent( + elem_type._type_.__name__ + if hasattr(elem_type._type_, "__name__") + else str(elem_type._type_) + ) elif containing_type.__module__ == ctypes.__name__: if isinstance(elem_type, type): if issubclass(elem_type, ctypes.Array): @@ -149,7 +153,11 @@ def process_vmlinux_post_ast( "Module not supported in recursive resolution" ) else: - new_dep_node.add_dependent(elem_type.__name__ if hasattr(elem_type, "__name__") else str(elem_type)) + new_dep_node.add_dependent( + elem_type.__name__ + if hasattr(elem_type, "__name__") + else str(elem_type) + ) process_vmlinux_post_ast( elem_type, llvm_handler, handler, processing_stack ) diff --git a/tests/failing_tests/xdp_pass.py b/tests/failing_tests/xdp_pass.py index 473375b..6d6be86 100644 --- a/tests/failing_tests/xdp_pass.py +++ b/tests/failing_tests/xdp_pass.py @@ -2,8 +2,8 @@ from pythonbpf import bpf, map, section, bpfglobal, compile_to_ir from pythonbpf.maps import HashMap from pythonbpf.helper import XDP_PASS from vmlinux import struct_xdp_md -from vmlinux import struct_trace_event_raw_sys_enter # noqa: F401 -from vmlinux import struct_ring_buffer_per_cpu # noqa: F401 +from vmlinux import struct_trace_event_raw_sys_enter # noqa: F401 +from vmlinux import struct_ring_buffer_per_cpu # noqa: F401 from ctypes import c_int64