Bläddra i källkod

Drop getattr masking of the base-class _reaction_handler

The attribute is declared on BasePlatformAdapter (base.py:3017) with a
None default, so it is always present. Direct access is typed and matches
the AGENTS.md typed-access rule; the getattr fallback only hid that.
Paul Klumpp 1 vecka sedan
förälder
incheckning
30bc4f75ec
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      adapter.py

+ 1 - 1
adapter.py

@@ -1536,7 +1536,7 @@ class ChattoAdapter(BasePlatformAdapter):
         if not payload.room_id or not payload.message_event_id or not actor_id:
             return
 
-        handler = getattr(self, "_reaction_handler", None)
+        handler = self._reaction_handler
         if handler is None:
             return