# jsonargparse 4.53.0 (MIT), harvested by tools/harvest_corpus.py
=== input

    Modify global parser settings that affect parser creation and parsing behavior.

    Args:
        validate_defaults: Whether default values must be valid according to the
            argument type. The default is ``False``, meaning no default
            validation, like in argparse.
        validate_subclass_spec_in_any: If ``True``, when a value for a type that
            accepts any value, i.e. ``Any``, ``object``, ``Unvalidated<...>`` or
            a dict that doesn't validate its values, looks like a subclass spec
            (i.e. a dict with a ``class_path`` key), it is required to be a
            valid one, otherwise the parsing fails. For dicts the spec is only
            validated, since the value is kept as a dict. By default, this is
            ``False``, meaning that an invalid subclass spec is ignored (a debug
            log is emitted) and the original value is kept.
        instantiate_subclass_spec_in_any: Whether ``instantiate`` builds the
            class when a value for a type that accepts any value, i.e. ``Any``,
            ``object`` or ``Unvalidated<...>``, is a valid subclass spec. If
            ``False``, the value is kept as a subclass spec, which the code that
            receives it can instantiate itself if desired. Currently the default
            is ``True`` and a deprecation warning is emitted, since from v5.0.0
            the default will be ``False``. Enabling it is discouraged because it
            means that any class can be instantiated, so only do it for trusted
            configs.
        config_read_mode_urls_enabled: Whether to read config files from URLs
            using requests package. Default is ``False``.
        config_read_mode_fsspec_enabled: Whether to read config files from
            fsspec supported file systems. Default is ``False``.
        docstring_parse_style: The docstring style to expect. Default is
            ``DocstringStyle.AUTO``.
        docstring_parse_attribute_docstrings: Whether to parse attribute
            docstrings (slower). Default is ``False``.
        parse_optionals_as_positionals: If ``True``, the parser will take extra
            positional command line arguments as values for optional arguments.
            This means that optional arguments can be given by name
            ``--key=value`` as usual, but also as positional. The extra
            positionals are applied to optionals in the order that they were
            added to the parser. By default, this is ``False``.
        add_print_completion_argument: If ``True``, top-level parsers
            automatically include a ``--print_completion`` argument. Its
            accepted values are ``jsonschema`` and, when ``shtab`` is installed,
            one ``shtab-*`` value per supported shell.
        stubs_resolver_allow_py_files: Whether the stubs resolver should search
            in ``.py`` files in addition to ``.pyi`` files.
        omegaconf_absolute_to_relative_paths: If ``True``, when loading configs
            with ``omegaconf+`` parser mode, absolute interpolation paths are
            converted to relative. This is only intended for backward
            compatibility with ``omegaconf`` parser mode.
        unset_sentinel: If ``True``, parsers will use the :obj:`.Unset` sentinel
            for arguments that have not been given a value (instead of
            ``None``). This allows distinguishing between ``None`` as an
            explicitly given value and an argument that was not provided at
            all. If ``False``, uses ``None`` (the default, argparse-compatible
            behavior) unless overridden by ``argument_default``.
        subclasses_disabled: List of types or functions, so that when parsing
            only the exact type hints (not their subclasses) are accepted.
            Descendants of the configured types are also disabled. Functions
            should return ``True`` for types to disable.
        subclasses_enabled: List of types or disable function names, so that
            subclasses are accepted. Types given here have precedence over those
            in ``subclasses_disabled``. Giving a function name removes the
            corresponding function from ``subclasses_disabled``. By default, the
            following disable functions are registered: ``is_pure_dataclass``,
            ``is_pydantic_model``, ``is_attrs_class`` and ``is_final_class``.
        import_path_denylist: Import paths that a value is not allowed to name,
            added to the ones denied by default. An entry denies a dot import
            path and everything under it, e.g. ``os`` also denies ``os.system``.
            The entry ``*`` denies everything, so that only what the allowlist
            permits is importable.
        import_path_allowlist: Import paths that a value is allowed to name,
            taking precedence over the denylist for the same entry. The most
            specific entry decides, so ``functools.partial`` here allows only
            that path out of a denied ``functools``. Paths under ``jsonargparse``
            are not accepted, since a value that names them would be able to
            change these settings.
    
=== parse google
short_description: 'Modify global parser settings that affect parser creation and parsing behavior.'
blank_after_short_description: True
blank_after_long_description: False
style: google
- DocstringParam
  description: |
    Whether default values must be valid according to the
    argument type. The default is ``False``, meaning no default
    validation, like in argparse.
  kind: param
  key: 'param'
  arg_name: 'validate_defaults'
  is_optional: True
  default: 'False'
- DocstringParam
  description: |
    If ``True``, when a value for a type that
    accepts any value, i.e. ``Any``, ``object``, ``Unvalidated<...>`` or
    a dict that doesn't validate its values, looks like a subclass spec
    (i.e. a dict with a ``class_path`` key), it is required to be a
    valid one, otherwise the parsing fails. For dicts the spec is only
    validated, since the value is kept as a dict. By default, this is
    ``False``, meaning that an invalid subclass spec is ignored (a debug
    log is emitted) and the original value is kept.
  kind: param
  key: 'param'
  arg_name: 'validate_subclass_spec_in_any'
  is_optional: False
- DocstringParam
  description: |
    Whether ``instantiate`` builds the
    class when a value for a type that accepts any value, i.e. ``Any``,
    ``object`` or ``Unvalidated<...>``, is a valid subclass spec. If
    ``False``, the value is kept as a subclass spec, which the code that
    receives it can instantiate itself if desired. Currently the default
    is ``True`` and a deprecation warning is emitted, since from v5.0.0
    the default will be ``False``. Enabling it is discouraged because it
    means that any class can be instantiated, so only do it for trusted
    configs.
  kind: param
  key: 'param'
  arg_name: 'instantiate_subclass_spec_in_any'
  is_optional: False
- DocstringParam
  description: |
    Whether to read config files from URLs
    using requests package. Default is ``False``.
  kind: param
  key: 'param'
  arg_name: 'config_read_mode_urls_enabled'
  is_optional: True
  default: 'False'
- DocstringParam
  description: |
    Whether to read config files from
    fsspec supported file systems. Default is ``False``.
  kind: param
  key: 'param'
  arg_name: 'config_read_mode_fsspec_enabled'
  is_optional: True
  default: 'False'
- DocstringParam
  description: |
    The docstring style to expect. Default is
    ``DocstringStyle.AUTO``.
  kind: param
  key: 'param'
  arg_name: 'docstring_parse_style'
  is_optional: True
  default: 'DocstringStyle.AUTO'
- DocstringParam
  description: |
    Whether to parse attribute
    docstrings (slower). Default is ``False``.
  kind: param
  key: 'param'
  arg_name: 'docstring_parse_attribute_docstrings'
  is_optional: True
  default: 'False'
- DocstringParam
  description: |
    If ``True``, the parser will take extra
    positional command line arguments as values for optional arguments.
    This means that optional arguments can be given by name
    ``--key=value`` as usual, but also as positional. The extra
    positionals are applied to optionals in the order that they were
    added to the parser. By default, this is ``False``.
  kind: param
  key: 'param'
  arg_name: 'parse_optionals_as_positionals'
  is_optional: False
- DocstringParam
  description: |
    If ``True``, top-level parsers
    automatically include a ``--print_completion`` argument. Its
    accepted values are ``jsonschema`` and, when ``shtab`` is installed,
    one ``shtab-*`` value per supported shell.
  kind: param
  key: 'param'
  arg_name: 'add_print_completion_argument'
  is_optional: False
- DocstringParam
  description: |
    Whether the stubs resolver should search
    in ``.py`` files in addition to ``.pyi`` files.
  kind: param
  key: 'param'
  arg_name: 'stubs_resolver_allow_py_files'
  is_optional: False
- DocstringParam
  description: |
    If ``True``, when loading configs
    with ``omegaconf+`` parser mode, absolute interpolation paths are
    converted to relative. This is only intended for backward
    compatibility with ``omegaconf`` parser mode.
  kind: param
  key: 'param'
  arg_name: 'omegaconf_absolute_to_relative_paths'
  is_optional: False
- DocstringParam
  description: |
    If ``True``, parsers will use the :obj:`.Unset` sentinel
    for arguments that have not been given a value (instead of
    ``None``). This allows distinguishing between ``None`` as an
    explicitly given value and an argument that was not provided at
    all. If ``False``, uses ``None`` (the default, argparse-compatible
    behavior) unless overridden by ``argument_default``.
  kind: param
  key: 'param'
  arg_name: 'unset_sentinel'
  is_optional: False
- DocstringParam
  description: |
    List of types or functions, so that when parsing
    only the exact type hints (not their subclasses) are accepted.
    Descendants of the configured types are also disabled. Functions
    should return ``True`` for types to disable.
  kind: param
  key: 'param'
  arg_name: 'subclasses_disabled'
  is_optional: False
- DocstringParam
  description: |
    List of types or disable function names, so that
    subclasses are accepted. Types given here have precedence over those
    in ``subclasses_disabled``. Giving a function name removes the
    corresponding function from ``subclasses_disabled``. By default, the
    following disable functions are registered: ``is_pure_dataclass``,
    ``is_pydantic_model``, ``is_attrs_class`` and ``is_final_class``.
  kind: param
  key: 'param'
  arg_name: 'subclasses_enabled'
  is_optional: False
- DocstringParam
  description: |
    Import paths that a value is not allowed to name,
    added to the ones denied by default. An entry denies a dot import
    path and everything under it, e.g. ``os`` also denies ``os.system``.
    The entry ``*`` denies everything, so that only what the allowlist
    permits is importable.
  kind: param
  key: 'param'
  arg_name: 'import_path_denylist'
  is_optional: False
- DocstringParam
  description: |
    Import paths that a value is allowed to name,
    taking precedence over the denylist for the same entry. The most
    specific entry decides, so ``functools.partial`` here allows only
    that path out of a denied ``functools``. Paths under ``jsonargparse``
    are not accepted, since a value that names them would be able to
    change these settings.
  kind: param
  key: 'param'
  arg_name: 'import_path_allowlist'
  is_optional: False
=== detect
google
=== compose google
Modify global parser settings that affect parser creation and parsing behavior.

Args:
    validate_defaults: Whether default values must be valid according to the
        argument type. The default is ``False``, meaning no default
        validation, like in argparse.
    validate_subclass_spec_in_any: If ``True``, when a value for a type that
        accepts any value, i.e. ``Any``, ``object``, ``Unvalidated<...>`` or
        a dict that doesn't validate its values, looks like a subclass spec
        (i.e. a dict with a ``class_path`` key), it is required to be a
        valid one, otherwise the parsing fails. For dicts the spec is only
        validated, since the value is kept as a dict. By default, this is
        ``False``, meaning that an invalid subclass spec is ignored (a debug
        log is emitted) and the original value is kept.
    instantiate_subclass_spec_in_any: Whether ``instantiate`` builds the
        class when a value for a type that accepts any value, i.e. ``Any``,
        ``object`` or ``Unvalidated<...>``, is a valid subclass spec. If
        ``False``, the value is kept as a subclass spec, which the code that
        receives it can instantiate itself if desired. Currently the default
        is ``True`` and a deprecation warning is emitted, since from v5.0.0
        the default will be ``False``. Enabling it is discouraged because it
        means that any class can be instantiated, so only do it for trusted
        configs.
    config_read_mode_urls_enabled: Whether to read config files from URLs
        using requests package. Default is ``False``.
    config_read_mode_fsspec_enabled: Whether to read config files from
        fsspec supported file systems. Default is ``False``.
    docstring_parse_style: The docstring style to expect. Default is
        ``DocstringStyle.AUTO``.
    docstring_parse_attribute_docstrings: Whether to parse attribute
        docstrings (slower). Default is ``False``.
    parse_optionals_as_positionals: If ``True``, the parser will take extra
        positional command line arguments as values for optional arguments.
        This means that optional arguments can be given by name
        ``--key=value`` as usual, but also as positional. The extra
        positionals are applied to optionals in the order that they were
        added to the parser. By default, this is ``False``.
    add_print_completion_argument: If ``True``, top-level parsers
        automatically include a ``--print_completion`` argument. Its
        accepted values are ``jsonschema`` and, when ``shtab`` is installed,
        one ``shtab-*`` value per supported shell.
    stubs_resolver_allow_py_files: Whether the stubs resolver should search
        in ``.py`` files in addition to ``.pyi`` files.
    omegaconf_absolute_to_relative_paths: If ``True``, when loading configs
        with ``omegaconf+`` parser mode, absolute interpolation paths are
        converted to relative. This is only intended for backward
        compatibility with ``omegaconf`` parser mode.
    unset_sentinel: If ``True``, parsers will use the :obj:`.Unset` sentinel
        for arguments that have not been given a value (instead of
        ``None``). This allows distinguishing between ``None`` as an
        explicitly given value and an argument that was not provided at
        all. If ``False``, uses ``None`` (the default, argparse-compatible
        behavior) unless overridden by ``argument_default``.
    subclasses_disabled: List of types or functions, so that when parsing
        only the exact type hints (not their subclasses) are accepted.
        Descendants of the configured types are also disabled. Functions
        should return ``True`` for types to disable.
    subclasses_enabled: List of types or disable function names, so that
        subclasses are accepted. Types given here have precedence over those
        in ``subclasses_disabled``. Giving a function name removes the
        corresponding function from ``subclasses_disabled``. By default, the
        following disable functions are registered: ``is_pure_dataclass``,
        ``is_pydantic_model``, ``is_attrs_class`` and ``is_final_class``.
    import_path_denylist: Import paths that a value is not allowed to name,
        added to the ones denied by default. An entry denies a dot import
        path and everything under it, e.g. ``os`` also denies ``os.system``.
        The entry ``*`` denies everything, so that only what the allowlist
        permits is importable.
    import_path_allowlist: Import paths that a value is allowed to name,
        taking precedence over the denylist for the same entry. The most
        specific entry decides, so ``functools.partial`` here allows only
        that path out of a denied ``functools``. Paths under ``jsonargparse``
        are not accepted, since a value that names them would be able to
        change these settings.
