Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions jsonargparse/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
NSKeyError,
get_non_meta_sorted_keys,
is_meta_key,
patch_namespace,
recreate_branches,
remove_meta,
split_key_leaf,
Expand Down Expand Up @@ -289,7 +288,6 @@ def _parse_known_args_internal(self, args=None, namespace=None, *, argcomplete:
namespace = get_argcomplete_namespace(self, namespace)
try:
with (
patch_namespace(),
parser_context(parent_parser=self, lenient_check=True),
ActionTypeHint.subclass_arg_context(self),
suppress_required_actions(self),
Expand Down
4 changes: 0 additions & 4 deletions jsonargparse/_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,6 @@ def __call__(self, absolute: bool = True) -> str:
return self._absolute if absolute else self._relative


class DebugException(Exception):
pass


@deprecated("""
usage_and_exit_error_handler was deprecated in v4.20.0 and will be removed
in v5.0.0. With the removal of error_handler, there is no longer a need for
Expand Down
11 changes: 0 additions & 11 deletions jsonargparse/_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse
from collections import OrderedDict
from collections.abc import Iterator
from contextlib import contextmanager
from typing import Any, Optional, Union

__all__ = ["Namespace"]
Expand Down Expand Up @@ -52,16 +51,6 @@ def recreate_branches(data, skip_keys=None):
return new_data


@contextmanager
def patch_namespace():
namespace_class = argparse.Namespace
argparse.Namespace = Namespace
try:
yield
finally:
argparse.Namespace = namespace_class


class Namespace(argparse.Namespace):
"""Extension of argparse's Namespace to support nesting and subscript access."""

Expand Down
Loading