MCPcopy
hub / github.com/psf/black / match_seq

Method match_seq

src/blib2to3/pytree.py:563–571  ·  view source on GitHub ↗

Does this pattern exactly match a sequence of nodes? Default implementation for non-wildcard patterns.

(self, nodes: list[NL], results: _Results | None = None)

Source from the content-addressed store, hash-verified

561 return True
562
563 def match_seq(self, nodes: list[NL], results: _Results | None = None) -> bool:
564 """
565 Does this pattern exactly match a sequence of nodes?
566
567 Default implementation for non-wildcard patterns.
568 """
569 if len(nodes) != 1:
570 return False
571 return self.match(nodes[0], results)
572
573 def generate_matches(self, nodes: list[NL]) -> Iterator[tuple[int, _Results]]:
574 """

Callers

nothing calls this directly

Calls 1

matchMethod · 0.95

Tested by

no test coverage detected