pbspark/_proto.py
def _patched_convert_scalar_field_value():
    """Temporarily patch the scalar field conversion function."""
    convert_scalar_field_value_func = json_format._ConvertScalarFieldValue  # type: ignore[attr-defined]
    json_format._ConvertScalarFieldValue = _handle_bytes(  # type: ignore[attr-defined]
        json_format._ConvertScalarFieldValue  # type: ignore[attr-defined]
    )
    try:
        yield
    finally:
        json_format._ConvertScalarFieldValue = convert_scalar_field_value_func
Temporarily patch the scalar field conversion function.
Temporarily patch the scalar field conversion function.
Temporarily patch the scalar field conversion function .
def _patched_convert_scalar_field_value():
    convert_scalar_field_value_func = json_format._ConvertScalarFieldValue  
    json_format._ConvertScalarFieldValue = _handle_bytes(  
        json_format._ConvertScalarFieldValue  
    )
    try:
        yield
    finally:
        json_format._ConvertScalarFieldValue = convert_scalar_field_value_func
def _patched_convert_scalar_field_value ( ) : convert_scalar_field_value_func = json_format . _ConvertScalarFieldValue json_format . _ConvertScalarFieldValue = _handle_bytes ( json_format . _ConvertScalarFieldValue ) try : yield finally : json_format . _ConvertScalarFieldValue = convert_scalar_field_value_func
Temporarily patch the scalar field conversion function.
Temporarily patch the scalar field conversion function .
"""Temporarily patch the scalar field conversion function.""" # type: ignore[attr-defined] # type: ignore[attr-defined] # type: ignore[attr-defined]