.. _multiple-class-sub-patterns: multiple-class-sub-patterns / E1904 =================================== **Message emitted:** ``Multiple sub-patterns for attribute %s`` **Description:** *Emitted when there is more than one sub-pattern for a specific attribute in a class pattern.* **Problematic code:** .. literalinclude:: /data/messages/m/multiple-class-sub-patterns/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/m/multiple-class-sub-patterns/good.py :language: python **Related links:** - `Python documentation `_ Created by the `match_statements `__ checker.