Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ SequenceItem
Class
SequenceItem
pre_commit/yaml_rewrite.py:38–41 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
36
37
38
class
SequenceItem(NamedTuple):
39
def
match(self, n: Node) -> Generator[Node]:
40
if
isinstance(n, SequenceNode):
41
yield
from
n.value
42
43
44
def
_match(gen: Iterable[Node], m: _Matcher) -> Iterable[Node]:
Callers
4
_migrate_composed
Function · 0.90
test_match_produces_scalar_values_only
Function · 0.90
test_sequence_item_not_a_sequence
Function · 0.90
test_sequence_item
Function · 0.90
Calls
no outgoing calls
Tested by
3
test_match_produces_scalar_values_only
Function · 0.72
test_sequence_item_not_a_sequence
Function · 0.72
test_sequence_item
Function · 0.72