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

Function append_comments

src/black/linegen.py:1409–1411  ·  view source on GitHub ↗
(leaf: Leaf)

Source from the content-addressed store, hash-verified

1407 current_line.append(leaf)
1408
1409 def append_comments(leaf: Leaf) -> Iterator[Line]:
1410 for comment_after in line.comments_after(leaf):
1411 yield from append_to_line(comment_after)
1412
1413 last_non_comment_leaf = _get_last_non_comment_leaf(line)
1414 for leaf_idx, leaf in enumerate(line.leaves):

Callers 1

delimiter_splitFunction · 0.85

Calls 2

append_to_lineFunction · 0.85
comments_afterMethod · 0.80

Tested by

no test coverage detected