Skip to content

Commit ff8e7f0

Browse files
committed
remove useless doc updates...
1 parent dc85082 commit ff8e7f0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

conditional_parser.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ def _prepare_conditionals(self, _parser: ArgumentParser, args: List[str], alread
153153
-------
154154
ArgumentParser
155155
The parser with all required conditional arguments added.
156-
157-
Notes
158-
-----
159-
This is an internal method that should not be called directly. It is used
160-
by parse_args() to handle the addition of conditional arguments.
161156
"""
162157
# remove help arguments for an initial parse to determine if conditionals are needed
163158
args = [arg for arg in args if arg not in ["-h", "--help"]]
@@ -277,8 +272,3 @@ def _conditional_required(self, namespace: Namespace, parent: str, already_added
277272

278273
# otherwise return False to indicate that this conditional does not need to be added
279274
return False
280-
281-
282-
# copy the docstring and signature from ArgumentParser for more useful help messages
283-
ConditionalArgumentParser.__init__.__doc__ = ArgumentParser.__init__.__doc__
284-
ConditionalArgumentParser.__init__.__signature__ = signature(ArgumentParser.__init__)

0 commit comments

Comments
 (0)