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

Class MappingValue

pre_commit/yaml_rewrite.py:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class MappingValue(NamedTuple):
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 3

_migrate_composedFunction · 0.90
test_mapping_valueFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_mapping_valueFunction · 0.72