MCPcopy Index your code
hub / github.com/python/mypy / split_lines

Function split_lines

mypy/test/helpers.py:424–426  ·  view source on GitHub ↗

Returns a single list of string lines from the byte streams in args.

(*streams: bytes)

Source from the content-addressed store, hash-verified

422
423
424def split_lines(*streams: bytes) -> list[str]:
425 """Returns a single list of string lines from the byte streams in args."""
426 return [s for stream in streams for s in stream.decode("utf8").splitlines()]
427
428
429def write_and_fudge_mtime(content: str, target_path: str) -> None:

Callers 1

test_python_evaluationFunction · 0.90

Calls 2

splitlinesMethod · 0.80
decodeMethod · 0.45

Tested by 1

test_python_evaluationFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…