# Path: pre_commit/output.py
# def write(s: str, stream: IO[bytes] = sys.stdout.buffer) -> None:
# def write_line_b(
#         s: bytes | None = None,
#         stream: IO[bytes] = sys.stdout.buffer,
#         logfile_name: str | None = None,
# ) -> None:
# def write_line(s: str | None = None, **kwargs: Any) -> None:


import io
from pre_commit import output
from __future__ import annotations




def test_output_write_writes():
    stream = io.BytesIO()

# Path: pre_commit/output.py
# def write(s: str, stream: IO[bytes] = sys.stdout.buffer) -> None:
# def write_line_b(
#         s: bytes | None = None,
#         stream: IO[bytes] = sys.stdout.buffer,
#         logfile_name: str | None = None,
# ) -> None:
# def write_line(s: str | None = None, **kwargs: Any) -> None:


# Path: tests/output_test.py
import io
from pre_commit import output

from __future__ import annotations




def test_output_write_writes():
    stream = io.BytesIO()

    output.write('hello world', stream)