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

Method match

src/blib2to3/pytree.py:610–614  ·  src/blib2to3/pytree.py::LeafPattern.match

Override match() to insist on a leaf node.

(self, node: NL, results=None)

Source from the content-addressed store, hash-verified

608 self.name = name
609
610 def match(self, node: NL, results=None) -> bool:
611 class="st">""class="st">"Override match() to insist on a leaf node."class="st">""
612 if not isinstance(node, Leaf):
613 return False
614 return BasePattern.match(self, node, results)
615
616 def _submatch(self, node, results=None):
617 class="st">"""

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected