mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#10680: fix mutually exclusive arguments in argument groups.
This commit is contained in:
parent
53c460d5fb
commit
7f41b88bb7
2 changed files with 41 additions and 0 deletions
|
@ -1482,6 +1482,7 @@ class _ArgumentGroup(_ActionsContainer):
|
|||
self._defaults = container._defaults
|
||||
self._has_negative_number_optionals = \
|
||||
container._has_negative_number_optionals
|
||||
self._mutually_exclusive_groups = container._mutually_exclusive_groups
|
||||
|
||||
def _add_action(self, action):
|
||||
action = super(_ArgumentGroup, self)._add_action(action)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue