MCPcopy Index your code
hub / github.com/python/mypy / SequencePattern

Class SequencePattern

mypy/patterns.py:83–93  ·  view source on GitHub ↗

The pattern [ , ...]

Source from the content-addressed store, hash-verified

81
82
83class SequencePattern(Pattern):
84 """The pattern [<pattern>, ...]"""
85
86 patterns: list[Pattern]
87
88 def __init__(self, patterns: list[Pattern]) -> None:
89 super().__init__()
90 self.patterns = patterns
91
92 def accept(self, visitor: PatternVisitor[T]) -> T:
93 return visitor.visit_sequence_pattern(self)
94
95
96class StarredPattern(Pattern):

Callers 3

visit_MatchSequenceMethod · 0.90
read_patternFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…