.. _match-class-bind-self: match-class-bind-self / R1905 ============================= **Message emitted:** ``Use '%s() as %s' instead`` **Description:** *Match class patterns are faster if the name binding happens for the whole pattern and any lookup for `__match_args__` can be avoided.* **Problematic code:** .. literalinclude:: /data/messages/m/match-class-bind-self/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/m/match-class-bind-self/good.py :language: python **Related links:** - `Python documentation `_ Created by the `match_statements `__ checker.