(self, n: ast3.MatchSequence)
| 1776 | return self.set_line(node, n) |
| 1777 | |
| 1778 | def visit_MatchSequence(self, n: ast3.MatchSequence) -> SequencePattern: |
| 1779 | patterns = [self.visit(p) for p in n.patterns] |
| 1780 | stars = [p for p in patterns if isinstance(p, StarredPattern)] |
| 1781 | assert len(stars) < 2 |
| 1782 | |
| 1783 | node = SequencePattern(patterns) |
| 1784 | return self.set_line(node, n) |
| 1785 | |
| 1786 | def visit_MatchStar(self, n: ast3.MatchStar) -> StarredPattern: |
| 1787 | if n.name is None: |
nothing calls this directly
no test coverage detected