--------------------
Added
^^^^^
- Allow adding config argument with ``action="config"`` avoiding need to import
action class (`512
<https://github.com/omni-us/jsonargparse/pull/512>`__).
- Allow providing a function with return type a class in ``class_path``
(`lightning13613
<https://github.com/Lightning-AI/pytorch-lightning/discussions/13613>`__).
- Automatic ``--print_shtab`` option when ``shtab`` is installed, providing
completions for many type hints without the need to modify code (`528
<https://github.com/omni-us/jsonargparse/pull/528>`__).
Fixed
^^^^^
- Parsing incorrectly provides file content when type is a union with a
subclass, PathLike and string (`516
<https://github.com/omni-us/jsonargparse/issues/516>`__).
- ``--print_config`` failing in some cases (`517
<https://github.com/omni-us/jsonargparse/issues/517>`__).
- Callable that returns class not using required parameter default from lambda
(`523 <https://github.com/omni-us/jsonargparse/pull/523>`__).
- Failing to parse list of dataclasses with nested optional dataclass (`527
<https://github.com/omni-us/jsonargparse/pull/527>`__).
- List of union of classes not accepted by ``add_subclass_arguments`` in
``python>=3.11`` (`522
<https://github.com/omni-us/jsonargparse/pull/522>`__).
- Optional pydantic model failing to parse with `__pydantic_private__` error
(`521 <https://github.com/omni-us/jsonargparse/issues/521>`__).