I found an incompatibility between #SWIG 4.3 and #apparmor that I don't fully understand. A tuple created with %append_output contains an extra argument. This is noted in the SWIG 4.3.0 changelog but I don't know how to fix this while the typemaps are shared between python, perl and ruby.
I described the issue in the apparmor issue tracker, along with my analysis of 4.2 vs 4.3 wrapper at https://gitlab.com/apparmor/apparmor/-/issues/475
Do you know someone who knows swig and can shed some light on a possible solution?