def wrapped_callback_wg(state_code: 'dbus.UInt32', reason_code: 'dbus.UInt32'): state = NM.ActiveConnectionState(state_code) callback(ConnectionState.from_active_state(state))