Support for user-defined generic types ([#366](https://github.com/omni-us/jsonargparse/issues/366) <https://github.com/omni-us/jsonargparse/issues/366>__).
New function extend_base_type for easy creation and registering of custom
types that extend a base type ([#195](https://github.com/omni-us/jsonargparse/issues/195) <https://github.com/omni-us/jsonargparse/issue/195>__).
Support for Annotated types either ignoring the metadata or using it for
validation in case of pydantic types <https://docs.pydantic.dev/latest/api/types/>__ ([#384](https://github.com/omni-us/jsonargparse/issues/384) <https://github.com/omni-us/jsonargparse/issue/384>__).
Support for Python 3.12.
Fixed
^^^^^
--print_config fails when parser has shallow links.
Argument links unnecessarily applied when --print_config used and parser
has subcommands ([#311](https://github.com/omni-us/jsonargparse/issues/311) <https://github.com/omni-us/jsonargparse/issue/311>__).
Parsing fails when data type is a Callable with multiple input arguments
([#372](https://github.com/omni-us/jsonargparse/issues/372) <https://github.com/omni-us/jsonargparse/issues/372>__).
Postponed annotations not working for dataclasses.
Unsupported pop/get default incorrectly sets default as None
(lightning#18616 <https://github.com/Lightning-AI/lightning/issues/18616>__).
Pydantic models and dataclasses not working for pydantic>=2.0.0 ([#361](https://github.com/omni-us/jsonargparse/issues/361) <https://github.com/omni-us/jsonargparse/issue/361>__).
Changed
^^^^^^^
Provide a more informative error message to remind user to select
and provide a subcommand when a subcommand is required but not
given ([#371](https://github.com/omni-us/jsonargparse/issues/371) <https://github.com/omni-us/jsonargparse/pull/371>__).
Now when an argument link compute_fn fails, the error message will say
this ([#311](https://github.com/omni-us/jsonargparse/issues/311) <https://github.com/omni-us/jsonargparse/issue/311>__).
add_subclass_arguments now shows a better error message when an empty
tuple is given (lightning#18546 <https://github.com/Lightning-AI/lightning/issues/18546>__).
Document the requirements for creating and using custom types ([#195](https://github.com/omni-us/jsonargparse/issues/195) <https://github.com/omni-us/jsonargparse/issue/195>__).
Parameters with default and without type, now get as type
Union[type(default), Any].
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on jsonargparse[signatures] to permit the latest version.
Changelog
Sourced from jsonargparse[signatures]'s changelog.
... (truncated)
Commits
dfc8507
Bump version: 4.24.1 → 4.25.07b207e7
- Fix unsupported pop/get default incorrectly sets default as None (lightning...3ae77ff
- Support Annotated types either ignoring the metadata or using it for valida...cfec5a2
fixparse_args
forCallable
with multiple input arguments (#383)1400adb
- New function extend_base_type for easy creation and registering of custom t...133c158
Add support for python 3.12.715e6ed
Added support for user-defined generic types (#366).5da0381
Fix postponed annotations not working for dataclasses.1d1b917
Added typos to pre-commit config.4436e49
add_subclass_arguments now shows a better error message when an empty tuple i...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show