---
title: "jsonargparse 4.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each jsonargparse release removed, renamed or changed: 51 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/jsonargparse
last_updated: 2026-12-04
---

# jsonargparse breaking changes

jsonargparse 4.0.0 (November 16, 2021) is its newest release with breaking changes, 27 of them. The first: jsonargparse 4.0.0 drops support for Python 3.5. Every breaking API change we have recorded in jsonargparse on PyPI: 51 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.53.0`, released October 23, 2026. 

Its 4.0.0 release drops Python 3.5. [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 27 breaking changes in 1 version.

## jsonargparse 4.0.0 breaking changes

jsonargparse 4.0.0, released November 16, 2021: 27 breaking changes.

- **Removed**  

Python 3.5 is no longer supported; users on Python 3.5 must stay on an earlier release or upgrade Python. [github.com](https://github.com/omni-us/jsonargparse/blob/v4.0.0/CHANGELOG.rst)
- **Behavior changed**  

Deprecations are now emitted as JsonargparseDeprecationWarning, so code filtering warning categories may need updating. [github.com](https://github.com/omni-us/jsonargparse/blob/v4.0.0/CHANGELOG.rst)
- **Behavior changed**  

Parsed values from ActionJsonSchema and ActionJsonnet are dict instead of Namespace; code relying on Namespace attributes must adapt. [github.com](https://github.com/omni-us/jsonargparse/blob/v4.0.0/CHANGELOG.rst)
- **Signature changed** `jsonargparse.ActionConfigFile.__call__`  

Was def \_\_call\_\_(self, parser, namespace, values, option_string=None); now def \_\_call\_\_(self, parser, cfg, values, option_string=None). [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ActionJsonnet.parse`  

Was def parse(self, jsonnet: Union\[str, Path\], ext_vars: Union\[Dict\[str, Any\], Namespace\] = None, with_meta: bool = False) -> Namespace; now def parse(self, jsonnet: Union\[str, Path\], ext_vars: Optional\[Dict\[str, Any\]\] = None, with_meta... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ActionJsonnet.split_ext_vars`  

Was @staticmethod def split_ext_vars(ext_vars: Optional\[Union\[Dict\[str, Any\], Namespace\]\]) -> Tuple\[Dict\[str, Any\], Dict\[str, Any\]\]; now @staticmethod def split_ext_vars(ext_vars: Optional\[Dict\[str, Any\]\]) -> Tuple\[Dict\[str, Any\]... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ActionParser.__init__`  

Was def \_\_init\_\_(self, parser: argparse.ArgumentParser = None); now def \_\_init\_\_(self, parser: ArgumentParser = None). [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.__init__`  

Was def \_\_init\_\_(self, \*args, env_prefix: str = None, error_handler: Optional\[Callable\[\[Type, str\], None\]\] = usage_and_exit_error_handler, formatter_class: Type\[argparse.HelpFormatter\] = DefaultHelpFormatter, logger: Union\[bool, Dict\[str... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.add_subcommands`  

Was def add_subcommands(self, required: bool = True, dest: str = 'subcommand', \*\*kwargs) -> Action; now def add_subcommands(self, required: bool = True, dest: str = 'subcommand', \*\*kwargs) -> \_ActionSubCommands. [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.check_config`  

Was def check_config(self, cfg: Union\[Namespace, Dict\[str, Any\]\], skip_none: bool = True, skip_required: bool = False, branch: str = None); now def check_config(self, cfg: Namespace, skip_none: bool = True, skip_required: bool = False... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.dump`  

Was def dump(self, cfg: Union\[Namespace, Dict\[str, Any\]\], format: str = 'parser_mode', skip_none: bool = True, skip_check: bool = False, yaml_comments: bool = False) -> str; now def dump(self, cfg: Namespace, format: str = 'parser_mode'... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.get_config_files`  

Was def get_config_files(self, cfg: Union\[Namespace, Dict\[str, Any\]\]) -> List\[str\]; now def get_config_files(self, cfg: Namespace) -> List\[str\]. [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.get_defaults`  

Was def get_defaults(self, nested: bool = True, skip_check: bool = False) -> Namespace; now def get_defaults(self, skip_check: bool = False) -> Namespace. [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.instantiate_classes`  

Was def instantiate_classes(self, cfg: Union\[Namespace, Dict\[str, Any\]\], instantiate_groups: bool = True) -> Dict\[str, Any\]; now def instantiate_classes(self, cfg: Namespace, instantiate_groups: bool = True) -> Namespace. [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.parse_args`  

Was def parse_args(self, args: List\[str\] = None, namespace: Namespace = None, env: bool = None, defaults: bool = True, nested: bool = True, with_meta: bool = None, \_skip_check: bool = False) -> Union\[Namespace, Dict\[str, Any\]\]; now def... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.parse_env`  

Was def parse_env(self, env: Dict\[str, str\] = None, defaults: bool = True, nested: bool = True, with_meta: bool = None, \_skip_check: bool = False, \_skip_subcommands: bool = False) -> Union\[Namespace, Dict\[str, Any\]\]; now def... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.parse_object`  

Was def parse_object(self, cfg_obj: Dict\[str, Any\], cfg_base=None, env: bool = None, defaults: bool = True, nested: bool = True, with_meta: bool = None, \_skip_check: bool = False, \_skip_required: bool = False) -> Union\[Namespace, Dict\[str... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.parse_path`  

Was def parse_path(self, cfg_path: str, ext_vars: dict = None, env: bool = None, defaults: bool = True, nested: bool = True, with_meta: bool = None, \_skip_check: bool = False, \_fail_no_subcommand: bool = True, \_base=None) ->... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.parse_string`  

Was def parse_string(self, cfg_str: str, cfg_path: str = '', ext_vars: dict = None, env: bool = None, defaults: bool = True, nested: bool = True, with_meta: bool = None, \_skip_check: bool = False, \_fail_no_subcommand: bool = True) ->... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.save`  

Was def save(self, cfg: Union\[Namespace, Dict\[str, Any\]\], path: str, format: str = 'parser_mode', skip_none: bool = True, skip_check: bool = False, overwrite: bool = False, multifile: bool = True, branch: str = None); now def save(self... [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.strip_unknown`  

Was def strip_unknown(self, cfg: Union\[Namespace, Dict\[str, Any\]\]) -> Namespace; now def strip_unknown(self, cfg: Namespace) -> Namespace. [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.DefaultHelpFormatter.set_yaml_argument_comment`  

Was def set_yaml_argument_comment(self, text: str, cfg: ruyaml.comments.CommentedMap, key: str, depth: int); now def set_yaml_argument_comment(self, text: str, cfg: ruyamlCommentedMap, key: str, depth: int). [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.DefaultHelpFormatter.set_yaml_group_comment`  

Was def set_yaml_group_comment(self, text: str, cfg: ruyaml.comments.CommentedMap, key: str, depth: int); now def set_yaml_group_comment(self, text: str, cfg: ruyamlCommentedMap, key: str, depth: int). [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.DefaultHelpFormatter.set_yaml_start_comment`  

Was def set_yaml_start_comment(self, text: str, cfg: ruyaml.comments.CommentedMap); now def set_yaml_start_comment(self, text: str, cfg: ruyamlCommentedMap). [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.namespace_to_dict`  

Was def namespace_to_dict(cfg_ns: Namespace) -> Dict\[str, Any\]; now def namespace_to_dict(namespace: Namespace) -> Dict\[str, Any\]. [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.strip_meta`  

Was def strip_meta(cfg: Union\[Namespace, Dict\[str, Any\]\]) -> Dict\[str, Any\]; now def strip_meta(cfg). [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)
- **Signature changed** `jsonargparse.usage_and_exit_error_handler`  

Was def usage_and_exit_error_handler(self, message: str); now def usage_and_exit_error_handler(parser: ArgumentParser, message: str) -> None. [pypi.org](https://pypi.org/project/jsonargparse/4.0.0/)

## jsonargparse 3.0.0 breaking changes

jsonargparse 3.0.0, released December 1, 2020: 24 breaking changes.

- **Renamed** `SimpleNamespace`  

SimpleNamespace was changed to Namespace to match argparse. Code importing or using SimpleNamespace must switch to Namespace. [github.com](https://github.com/omni-us/jsonargparse/blob/v3.0.0/CHANGELOG.rst)
- **Behavior changed** `error_handler`  

Passing a string as error_handler or formatter_class is no longer accepted; pass the callable or class itself instead. [github.com](https://github.com/omni-us/jsonargparse/blob/v3.0.0/CHANGELOG.rst)
- **Default changed** `ArgumentParser`  

ArgumentParsers by default now use usage_and_exit_error_handler as their error handler. Code relying on the previous default error handling must set error_handler explicitly. [github.com](https://github.com/omni-us/jsonargparse/blob/v3.0.0/CHANGELOG.rst)
- **Signature changed** `jsonargparse.ActionConfigFile`  

Was class ActionConfigFile(Action); now class ActionConfigFile(Action, FilesCompleterMethod). [pypi.org](https://pypi.org/project/jsonargparse/3.0.0/)
- **Signature changed** `jsonargparse.ActionJsonnet.parse`  

Was def parse(self, jsonnet, ext_vars={}, with_meta=False); now def parse(self, jsonnet: Union\[str, Path\], ext_vars: Union\[Dict\[str, Any\], Namespace\] = None, with_meta: bool = False) -> Namespace. [pypi.org](https://pypi.org/project/jsonargparse/3.0.0/)
- **Signature changed** `jsonargparse.ActionOperators`  

Was class ActionOperators(Action); now class ActionOperators. [pypi.org](https://pypi.org/project/jsonargparse/3.0.0/)
- **Signature changed** `jsonargparse.ActionPath`  

Was class ActionPath(Action); now class ActionPath(Action, FilesCompleterMethod). [pypi.org](https://pypi.org/project/jsonargparse/3.0.0/)
- **Signature changed** `jsonargparse.ActionPathList`  

Was class ActionPathList(Action); now class ActionPathList(Action, FilesCompleterMethod). [pypi.org](https://pypi.org/project/jsonargparse/3.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser`  

Was class ArgumentParser(\_ActionsContainer, argparse.ArgumentParser, LoggerProperty); now class ArgumentParser(SignatureArguments, \_ActionsContainer, argparse.ArgumentParser, LoggerProperty). [pypi.org](https://pypi.org/project/jsonargparse/3.0.0/)
- **Signature changed** `jsonargparse.ArgumentParser.__init__`  

Was def \_\_init\_\_(self, \*args, env_prefix=None, error_handler=None, formatter_class='default', logger=None, version=None, parser_mode='yaml', default_config_files: List\[str\] = \[\], default_env: bool = False, default_meta: bool = True... [pypi.org](https://pypi.org/project/jsonargparse/3.0.0/)

And 14 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
