MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / match

Method match

pre_commit/yaml_rewrite.py:31–35  ·  view source on GitHub ↗
(self, n: Node)

Source from the content-addressed store, hash-verified

29 k: str
30
31 def match(self, n: Node) -> Generator[Node]:
32 if isinstance(n, MappingNode):
33 for k, v in n.value:
34 if k.value == self.k:
35 yield v
36
37
38class SequenceItem(NamedTuple):

Callers 1

test_mapping_valueFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_mapping_valueFunction · 0.76