# jsonargparse 4.53.0 (MIT), harvested by tools/harvest_corpus.py
=== input
Adds arguments from a class based on its type hints and docstrings.

        Note: Keyword arguments without at least one valid type are ignored.

        Args:
            class_type: Class which includes the method.
            method_name: Name of the method for which to add arguments.
            nested_key: Key for nested namespace.
            as_group: Whether arguments should be added to a new argument group.
            as_positional: Whether to add required parameters as positional arguments.
            skip: Names of parameters or number of positionals that should be skipped.
            fail_untyped: Whether to raise an exception for parameters that don't have a type:
                True for the required ones, "all" for all of them, False for none.
            sub_configs: Whether subclass type hints should be loadable from inner config file.

        Returns:
            The list of arguments added.

        Raises:
            ValueError: When not given a class or the name of a method of the class.
            ValueError: When there are required parameters without at least one valid type.
        
=== parse google
short_description: 'Adds arguments from a class based on its type hints and docstrings.'
long_description: 'Note: Keyword arguments without at least one valid type are ignored.'
blank_after_short_description: True
blank_after_long_description: True
style: google
- DocstringParam
  description: 'Class which includes the method.'
  kind: param
  key: 'param'
  arg_name: 'class_type'
  is_optional: False
- DocstringParam
  description: 'Name of the method for which to add arguments.'
  kind: param
  key: 'param'
  arg_name: 'method_name'
  is_optional: False
- DocstringParam
  description: 'Key for nested namespace.'
  kind: param
  key: 'param'
  arg_name: 'nested_key'
  is_optional: False
- DocstringParam
  description: 'Whether arguments should be added to a new argument group.'
  kind: param
  key: 'param'
  arg_name: 'as_group'
  is_optional: False
- DocstringParam
  description: 'Whether to add required parameters as positional arguments.'
  kind: param
  key: 'param'
  arg_name: 'as_positional'
  is_optional: False
- DocstringParam
  description: 'Names of parameters or number of positionals that should be skipped.'
  kind: param
  key: 'param'
  arg_name: 'skip'
  is_optional: False
- DocstringParam
  description: |
    Whether to raise an exception for parameters that don't have a type:
    True for the required ones, "all" for all of them, False for none.
  kind: param
  key: 'param'
  arg_name: 'fail_untyped'
  is_optional: False
- DocstringParam
  description: 'Whether subclass type hints should be loadable from inner config file.'
  kind: param
  key: 'param'
  arg_name: 'sub_configs'
  is_optional: False
- DocstringReturns
  description: 'The list of arguments added.'
  kind: returns
  key: 'returns'
  is_generator: False
- DocstringRaises
  description: 'When not given a class or the name of a method of the class.'
  kind: raises
  key: 'raises'
  type_name: 'ValueError'
- DocstringRaises
  description: 'When there are required parameters without at least one valid type.'
  kind: raises
  key: 'raises'
  type_name: 'ValueError'
=== detect
google
=== compose google
Adds arguments from a class based on its type hints and docstrings.

Note: Keyword arguments without at least one valid type are ignored.

Args:
    class_type: Class which includes the method.
    method_name: Name of the method for which to add arguments.
    nested_key: Key for nested namespace.
    as_group: Whether arguments should be added to a new argument group.
    as_positional: Whether to add required parameters as positional arguments.
    skip: Names of parameters or number of positionals that should be skipped.
    fail_untyped: Whether to raise an exception for parameters that don't have a type:
        True for the required ones, "all" for all of them, False for none.
    sub_configs: Whether subclass type hints should be loadable from inner config file.

Returns:
    The list of arguments added.

Raises:
    ValueError: When not given a class or the name of a method of the class.
    ValueError: When there are required parameters without at least one valid type.
