From 82d61165d0c175ca2db41c9df59162d1541c3666 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Tue, 15 Sep 2026 01:15:30 +0530 Subject: [PATCH] style(matrix): separate _MATRIX_PERMANENT_ERRCODES from the preceding function The stack inserted the errcode table directly after _strip_reply_fallback's return with no blank lines, which reads as if the constant belongs to the function body and trips E305. Two blank lines restore the module-level boundary; no behaviour change. --- plugins/platforms/matrix/adapter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/platforms/matrix/adapter.py b/plugins/platforms/matrix/adapter.py index e5e6766659..d2df6d7b2c 100644 --- a/plugins/platforms/matrix/adapter.py +++ b/plugins/platforms/matrix/adapter.py @@ -195,6 +195,8 @@ def _strip_reply_fallback(body: str) -> str: continue stripped.append(line) return "\n".join(stripped) if stripped else body + + # Auth errcodes that genuinely require re-authentication (never retried). _MATRIX_PERMANENT_ERRCODES = frozenset({ "m_unknown_token",