We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a097bf commit a6d283dCopy full SHA for a6d283d
jsonargparse/_completions.py
@@ -6,7 +6,7 @@
6
from collections import defaultdict
7
from contextlib import contextmanager, suppress
8
from contextvars import ContextVar
9
-from copy import deepcopy
+from copy import copy
10
from enum import Enum
11
from importlib.util import find_spec
12
from subprocess import PIPE, Popen
@@ -133,7 +133,7 @@ def shtab_prepare_actions(parser) -> None:
133
shtab_prepare_actions(subparser)
134
if get_parsing_setting("parse_optionals_as_positionals"):
135
for action in get_optionals_as_positionals_actions(parser):
136
- clone = deepcopy(action)
+ clone = copy(action)
137
clone.option_strings = []
138
clone.nargs = "?"
139
parser._actions.append(clone)
0 commit comments