# pydantic 2.14.2 (MIT), harvested by tools/harvest_corpus.py
=== input
Parse an alpha value checking it's a valid float in the range 0 to 1.

    Args:
        value: The input value to parse.

    Returns:
        The parsed value as a float, or `None` if the value was None or equal 1.

    Raises:
        PydanticCustomError: If the input value cannot be successfully parsed as a float in the expected range.
    
=== parse google
short_description: "Parse an alpha value checking it's a valid float in the range 0 to 1."
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: 'The input value to parse.'
  kind: param
  key: 'param'
  arg_name: 'value'
  is_optional: False
- DocstringReturns
  description: 'The parsed value as a float, or `None` if the value was None or equal 1.'
  kind: returns
  key: 'returns'
  is_generator: False
- DocstringRaises
  description: 'If the input value cannot be successfully parsed as a float in the expected range.'
  kind: raises
  key: 'raises'
  type_name: 'PydanticCustomError'
=== detect
google
=== compose google
Parse an alpha value checking it's a valid float in the range 0 to 1.

Args:
    value: The input value to parse.

Returns:
    The parsed value as a float, or `None` if the value was None or equal 1.

Raises:
    PydanticCustomError: If the input value cannot be successfully parsed as a float in the expected range.
