def _patched_pep257():
    """Monkey-patch pep257 after imports to avoid info logging."""
    import pep257

    if getattr(pep257, "log", None):
        def _dummy(*args, **kwargs):
            del args
            del kwargs

        old_log_info = pep257.log.info
        pep257.log.info = _dummy  # suppress(unused-attribute)
    try:
        yield
    finally:
        if getattr(pep257, "log", None):
            pep257.log.info = old_log_info
Monkey-patch pep257 after imports to avoid info logging.