| 94 | |
| 95 | |
| 96 | class StarredPattern(Pattern): |
| 97 | # None corresponds to *_ in a list pattern. It will match multiple items but won't bind them to |
| 98 | # a name. |
| 99 | capture: NameExpr | None |
| 100 | |
| 101 | def __init__(self, capture: NameExpr | None) -> None: |
| 102 | super().__init__() |
| 103 | self.capture = capture |
| 104 | |
| 105 | def accept(self, visitor: PatternVisitor[T]) -> T: |
| 106 | return visitor.visit_starred_pattern(self) |
| 107 | |
| 108 | |
| 109 | class MappingPattern(Pattern): |
no outgoing calls
no test coverage detected
searching dependent graphs…