Refs #18586 -- Fixed flake8 in m2m_signal test files