.. _match-class-positional-attributes: match-class-positional-attributes / R1906 ========================================= **Message emitted:** ``Use keyword attributes instead of positional ones (%s)`` **Description:** *Keyword attributes are more explicit and slightly faster since CPython can skip the `__match_args__` lookup.* **Problematic code:** .. literalinclude:: /data/messages/m/match-class-positional-attributes/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/m/match-class-positional-attributes/good.py :language: python **Related links:** - `Python documentation `_ Created by the `match_statements `__ checker.