.. _too-many-positional-sub-patterns: too-many-positional-sub-patterns / E1903 ======================================== **Message emitted:** ``%s expects %d positional sub-patterns (given %d)`` **Description:** *Emitted when the number of allowed positional sub-patterns exceeds the number of allowed sub-patterns specified in `__match_args__`.* **Problematic code:** .. literalinclude:: /data/messages/t/too-many-positional-sub-patterns/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/t/too-many-positional-sub-patterns/good.py :language: python **Related links:** - `Python documentation `_ Created by the `match_statements `__ checker.