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

Function line_to_string

src/black/lines.py:1543–1548  ·  view source on GitHub ↗

Returns the string representation of @line. WARNING: This is known to be computationally expensive.

(line: Line)

Source from the content-addressed store, hash-verified

1541
1542
1543def line_to_string(line: Line) -> str:
1544 """Returns the string representation of @line.
1545
1546 WARNING: This is known to be computationally expensive.
1547 """
1548 return str(line).strip("\n")

Callers 4

transform_lineFunction · 0.90
run_transformerFunction · 0.90
is_line_short_enoughFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected